close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding a text field

Thread began 1/20/2010 9:51 am by woodenboat | Last modified 1/21/2010 12:54 pm by woodenboat | 1175 views | 5 replies |

woodenboat

Adding a text field

I mean adding a textarea.

I have the user registration pack installed on the server and it all works. I also have access to the extensions library.

I need to add more fields and started by adding just one. So I add a new spry validation textarea using dreamweaver. I then upload to the server to check, the field seems to be working as far the spry validation, the page displays ok, so then on the SERVER BEHAVIORS panel I double click on Insert Record (users). The Insert Record Wizard opens, I hit next, select the new field I added to the database, the select the lightningbolt, hit the + sign on WAATKRegistrationForm and select "UserDescription" (the new field I added) and press OK. All seems fine, but when I upload to the server to test, the page is blank. What am I missing?

Sign in to reply to this post

Jason ByrnesWebAssist

When a php page displays blank, it means a php error is occurring, but error reporting is turned of. To turn it on to see the error, add the following code at line 1:

php:
<?php
error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




post back the text of the error and a copy of the page so we can begin troubleshooting the cause.

Sign in to reply to this post

woodenboat

error message

Using the error reporting did the trick, I see the problem but now wonder what is the best way to fix it or leave it as is and just upload another WA_DataAssist and WA_ValidationToolKit folder?

I installed the User Registration Solution Pack in a directory /root/exhibitors/ and so when I used DataAssist to update the new textarea field I added to users_Registration.php, 2 directories were added to the root directory - WA_DataAssist and WA_ValidationToolKit. And there is also those two directories in the directory where I put the User Registration Solution Pack. So do I just leave it as is and upload doubles or is there a way so I have only one folder for WA_DataAssist and WA_ValidationToolKit?

I uploaded the 2 new folders and now the page displays just fine but having those folders in 2 different places doesn't seem right.

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

Remove the include once lines for the files at the root of the site.

When editing a page, it looks for the include files at the root of the Dreamweaver site. Since you added the contact form files in a sub directory of your site, it will recreate the include files at the root.

Sign in to reply to this post

woodenboat

Progress is slow

I removed the include once lines for the files at the root of the site.

Then I got three errors relating to line numbers in the code.

1. The first one was that it had changed $WA_connection = $localhost; to $WA_connection = $the name of my connection; so I changed it back to $WA_connection = $localhost; like the original document.

2. The second error was that it had changed $WA_connectionDB = $database_localhost; to $WA_connectionDB = $database_the name of my database connection; so I changed it back to $WA_connectionDB = $database_localhost;

I don't know why those lines changed when I inserted the new field?

3. The only error I'm getting now is: Fatel error: Call to undefined function WA_AB_generateInsertParams() in /var/www/the path to/users_Registration.php on line 111.

So line 111 is this:
$insertParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);

Sorry, but I'm having a hard time grasping how this all works. I wonder if I should start over and set up the pages so they are in the root directory of a dreamweaver site instead of in a subdirectory?

Sign in to reply to this post

woodenboat

found problem

the line:
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
was missing. Don't know why, maybe I accidentally deleted it? So I added it back in and presto, the info all entered into the database.

So next I'll add two more fields and hope it goes ok.

Thanks.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...