The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
form not submitting / user not taken to thank-you page - 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: form not submitting / user not taken to thank-you page (/showthread.php?tid=593) |
form not submitting / user not taken to thank-you page - tara - Mar 22nd, 2010 Hello! I am trying to set up a form that has three pages: - http://healthyschoolscampaign.org/event/cookingupchange/2010/hs-apply-1.php - http://healthyschoolscampaign.org/event/cookingupchange/2010/hs-apply-2.php - http://healthyschoolscampaign.org/event/cookingupchange/2010/hs-apply-3.php and a thank-you page: http://healthyschoolscampaign.org/event/cookingupchange/2010/thanks.php Right now, I am able to add content on all three pages and proceed to the next page. But when I click "submit" at the end of page 3, the page goes blank rather than taking me to a thank you page. (The URL stays the same.) And of course the content is not submitted. I really appreciate any thoughts on what may be going wrong. Thanks very much! RE: form not submitting / user not taken to thank-you page - martin_undefined - Mar 22nd, 2010 Hi, Can you confirm what you've done with FormTools so far? Just glancing at the first page I thought I saw a reference to a different form processor? (Mar 22nd, 2010, 2:20 PM)tara Wrote: Hello! I am trying to set up a form that has three pages: RE: form not submitting / user not taken to thank-you page - tara - Mar 22nd, 2010 Sure... There are three or four forms on the page, but there is only one using FormTools, specifically the API. On the top of the page 1, my code reads: PHP Code: <?php And the form post is: PHP Code: <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST"> What seems to happen is that I can submit the first three pages, then rather then getting to the thank you page, I get stuck in a blank screen. The third page code reads: PHP Code: <?php And the form processor tag reads: PHP Code: <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST"> Does this help? Anything else you need? RE: form not submitting / user not taken to thank-you page - Ben - Mar 22nd, 2010 Hey Tara, What you posted looks pretty good. Do you have any email templates configured for the form? If so, try disabling them temporarily and re-submit the form. Secondly, try adding the following line to your /global/config.php file: PHP Code: $g_default_error_reporting = 2047; That (sometimes) will display some nice juicy errors for us to mull over. - Ben RE: form not submitting / user not taken to thank-you page - tara - Mar 23rd, 2010 Thanks. We don't have any email templates set in the tool. We did add the error reporting you suggested, and got this: After we submitted our form on this page http://healthyschoolscampaign.org/event/cookingupchange/2010/hs-apply-2.php the following page showed: PHP Code: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 1555 Then when submitting http://healthyschoolscampaign.org/event/cookingupchange/2010/hs-apply-3.php we got this error: PHP Code: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/healthys/public_html/event/cookingupchange/2010/hs-apply-3.php:1) in /home/.../a/forms2/global/api/api.php on line 1555 Thanks for your help! Hi -- another quick update. The form now seems to be working! We're not exactly sure why, but it seems to be submitting fairly consistently. The only problem we're encountering in completing the submission is an occasional error referencing "class = smarty," though that has been occasional. (Next time it happens, I'll copy the specific language describing the error.) The more significant problem is that the files submitted through the form are not uploading. When we click "view" in the forms tool and look at the submitted information, the files are listed with the correct file name and appear to be linked to the proper folder. But when we look in the folder, they aren't there. I appreciate any ideas or suggestions! Thanks again -- RE: form not submitting / user not taken to thank-you page - Ben - Mar 27th, 2010 Hey Tara, Huh...! I hate it when things just start working without knowing why... But I'm glad it's working at least. btw, I'd suggest removing that $g_default_error_reporting line now. Regarding the file upload, I MUST write a tutorial for debugging problems with them. Mental note. First step is to try uploading a file via the Form Tools admin interface. Does that work? - Ben RE: form not submitting / user not taken to thank-you page - ra1874 - Apr 11th, 2010 (Mar 27th, 2010, 10:57 AM)Ben Wrote: Hey Tara, Hello Ben, I have the same problem with getting the upload to work properly. I am able to upload the file via the Form Tools admin interface. After I submitted my form, I checked the database and all the fields are filled in correctly except the "file" field. It remains empty even though I've already specified a file when I submit my form. What should I do? Thanks in advance, Renold RE: form not submitting / user not taken to thank-you page - JanEllen - Jan 25th, 2011 I am having the same problem with regards to the blank page after form submission. I DID have an email template set up, but I removed it and still got a blank page after submission. Then I tried inserting that error message debugger thinggy that you mentioned and then when I submitted my form I got this: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/k/r/e/kreativ1/html/1TESTING/great_race_app2.php:6) in /home/content/k/r/e/kreativ1/html/1TESTING/formtools/global/api/api.php on line 1571 Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/r/e/kreativ1/html/1TESTING/great_race_app2.php:6) in /home/content/k/r/e/kreativ1/html/1TESTING/formtools/global/api/api.php on line 1572 Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/r/e/kreativ1/html/1TESTING/great_race_app2.php:6) in /home/content/k/r/e/kreativ1/html/1TESTING/formtools/global/api/api.php on line 1573 Warning: Cannot modify header information - headers already sent by (output started at /home/content/k/r/e/kreativ1/html/1TESTING/great_race_app2.php:6) in /home/content/k/r/e/kreativ1/html/1TESTING/formtools/global/api/api.php on line 865 Any idea what I need to modify? It DOES seem to be accepting the data and storing it because I can access it via the interface... but I don't get my "thank you" page coming up... Any help would be GREATLY appreciated as I am working on a huge project right now with a looming deadline. :-0 Help? Thanks so much! RE: form not submitting / user not taken to thank-you page - JanEllen - Jan 26th, 2011 Oh, and I guess I should mention that I am using the latest and greatest version of Form Tools... I clicked on update and it told me that there were no newer versions available... so I have to assume I am running the latest version. (2.0.4?) Anyone? I am getting desperate. I spent hours on this last night and I am by no means a "programmer..." (though I am trying to learn what I can in order to make a good impression on my client so they will maybe hire me permanently for the position...) |