The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Multi-page Add Form Test Submission Crashes - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Multi-page Add Form Test Submission Crashes (/showthread.php?tid=38) |
Multi-page Add Form Test Submission Crashes - seacaptdon - Mar 6th, 2009 Hi! I have setup a multi-page registration form following the instructions for "Adding a multi-page form with the API" in the Form Tools Documentation. I configured the first page with this script: PHP Code: <?php I attempted to do a test submission of the form and when I click the "submit button" it seems to be uploading but then I get a blank screen with done at the bottom status line on the browser. When I try to look at the "page source' file it shows only the first few lines of HTML code: Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> I expected it to continue to the next registration page to enter the data there. I tried manually going to the next page and got an error message as follows: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /mounted-storage/home122c/sub009/sc67680-TSDG/kardoninternet.com/members/membersignup_step2.php on line 10 Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> When I check the page source code on the server using the editor there it shows line 10 as the "file_data" => $_FILES line The only thing I can think of is that the files are in the "members" directory. The virtual web information is: Hostname: members.kardoninternet.com Document Root: /kardoninternet.com/members I am sure that I am overlooking something but I keep trying and nothing seems to be working. Any suggestion? Thanks, Donald RE: Multi-page Add Form Test Submission Crashes - seacaptdon - Mar 10th, 2009 I found at least part of the problem... I cannot believe that I was overlooking the missing comma (,) required after the "form_data" => $_POST line on the second and subsequent pages. What a difference a missing comma makes Anyway maybe in the instructions you could remind everyone that they need to also add the comma on the last line before the addition. Thanks. RE: Multi-page Add Form Test Submission Crashes - Ben - Mar 11th, 2009 Haha :-) You're absolutely right, I should mention this. I've been bit in the butt by this very problem. Glad you figured it out, though! RE: Multi-page Add Form Test Submission Crashes - seacaptdon - Mar 11th, 2009 One more problem that I encountered with this whole crashing issue is that Kompozer and some other WYSIWYG editors do not like the PHP code before the HTML and Head lines and seem to automatically move them down below it. I kept getting a crash after the first page and when I viewed "Page Source" it showed only the first lines of HTML as noted above. Once I moved the Form Tools PHP code above the HTML and Head lines it stopped the crashing problem also. Anyway moving the PHP code to the very first lines of the web pages and adding the necessary commas fixed the problems. RE: Multi-page Add Form Test Submission Crashes - Ben - Mar 12th, 2009 Thanks for the info, seacaptdon. |