The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Thank you page issue (not passing on) - 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: Thank you page issue (not passing on) (/showthread.php?tid=1337) |
Thank you page issue (not passing on) - gpdesigner - Jun 2nd, 2011 Hello Ben, Hey Thanks for this awesome program you have here . . I am setting up a form and and having issues passing on form field to thank you page . . I went through all the tutes and read some of the threads here but it seems that my answers are not here . . . here are my code tags In form head: Code: <?php In form action: Code: <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST"> This is in thank you head: Code: <?php This is in my Div tag" Code: <?php I installed all the modules and checked all the pass on variables but I get no code in my address bar and the thank you page is blank . . Here is the form links http://www.militarycuts.com/form.php Thanks in advance ciao RE: Thank you page issue (not passing on) - Ben - Jun 3rd, 2011 Hey gpdesigner, Hmm! At a quick glance, your code looks okay. So when you say your thank you page is blank, do you mean totally while (no HTML at all), or just that the results aren't being output into the page? If the latter, you could try adding this to the PHP at the top of the page (after the ft_api_init_form_page() function call): Code: print_r($fields); That will output everything that it found in sessions at that point. However, I looked at your form page and things look a little wonky. The form doesn't submit on Firefox. Since I don't see any offending JS, my hunch is that the markup is a little wrong. One thing I noticed (and this may well be unrelated), but I don't think comments of this form are valid: <!----- ------> They should only be <!-- --> (only two dashes either side). When I view source in Firefox, it shows a great deal of your page to be commented out. Also, I ran into a problem one time with XHTML strict when my javascript had lines of ----- in it. That also threw errors in Safari or something... Generally best to stick to the standard comment tags to ensure all weird & wonderful browsers won't break. Let me know how it goes. - Ben RE: Thank you page issue (not passing on) - gpdesigner - Jun 3rd, 2011 Hello Ben Thanks for the speedy reply, it is much appreciated. (Jun 3rd, 2011, 1:27 AM)Ben Wrote: If the latter, you could try adding this to the PHP at the top of the page (after the ft_api_init_form_page() function call): I put the code in and it did print out the session at the top of the page so I guess it is coming through, why it isn't showing up in the div is a mystery to me. Maybe I need to tinker with the way I put in the PHP ? (Jun 3rd, 2011, 1:27 AM)Ben Wrote: However, I looked at your form page and things look a little wonky. The form doesn't submit on Firefox. What version of FF are you using, I am cross browser testing and I am seeing it on everything, (Jun 3rd, 2011, 1:27 AM)Ben Wrote: One thing I noticed (and this may well be unrelated), but I don't think comments of this form are valid: <!----- ------> They should only be <!-- --> (only two dashes either side). When I view source in Firefox, it shows a great deal of your page to be commented out. Also, I ran into a problem one time with XHTML strict when my javascript had lines of ----- in it. That also threw errors in Safari or something... Generally best to stick to the standard comment tags to ensure all weird & wonderful browsers won't break. I will look into that maybe the extended comments are screwing things up in Safari on Mac, but it is working fine everywhere else . . . I will give it a look see . . . I have been commentint things out with multiple dashes since 2004 on all my websites, seems this practice is catching up with me, at least when I am using JS on the pages . . Anyway as I said after adding the bit of code you gave me the session is printing out at the top of all browser pages, what is next? gp RE: Thank you page issue (not passing on) - Ben - Jun 3rd, 2011 Heya, Ah! The problem is that you're detecting for values in the query string, not the fields returned from sessions. Try changing this line: Code: if (isset($_GET["submission_id"]) && isset($_GET["unique_key"])) to this: Code: if (isset($fields["form_tools_submission_id"]) && isset($fields["unique_key"])) That may help. - Ben RE: Thank you page issue (not passing on) - gpdesigner - Jun 3rd, 2011 (Jun 3rd, 2011, 6:38 AM)Ben Wrote: Heya, Oppps I got an FormTools error page . . . code 406 let me check to see if i pasted wrong |