NickG21 Posted January 5, 2007 Share Posted January 5, 2007 if this post is repetitive i apologize, i just have had no luck anywhere with help on this.i have 6 form pages that i am keeping track of with a single session, at the end of the pages i am looking to print a "Review Page" of all of the information entered by the user and then they finally submit the page and the information is e-mailed to me. i have done everything i can think of to figure this out including echoing all of the information stored in the session on the page before submission to my formmail and everything is there but after i submit the last page the only information passed to the e-mail is the one variable stored on the last page.does anyone know how i could figure this out. plus i have done the tectite tutorials on mutiple form pages with formmail.php and it doesn't work at all for me, i dont know where to go from here Quote Link to comment Share on other sites More sharing options...
complex05 Posted January 5, 2007 Share Posted January 5, 2007 well first you will need to either post your code or attach your php file for us to see what is going on. Quote Link to comment Share on other sites More sharing options...
NickG21 Posted January 5, 2007 Author Share Posted January 5, 2007 the only php code i have between the pages is......[code]<?php session_start(); foreach($_POST as $key => $var) { $_SESSION[$key] = $var; }?>[/code]while on the last page i have:[code]<?php session_start();foreach($_SESSION as $key => $value){ echo "<input type='hidden' value='" . $value . "' name='value" . $key . "'>";}?>[/code]i believed this would take every variable thus far and put it into a hidden field to be transferred into my mailing script template. i attached the template [code]<form method="post" action="formmail.php"><input type="hidden" name="mail_options" value="PlainTemplate=plain.txt,TemplateMissing=n/a" /><input type="hidden" name="subject" value="Mailing List Hosting Signup"/><input type="hidden" name="recipients" value="ngirard@netatlantic.com" /><input type="submit" value="Submit Information" name="submit"/></form>[/code][attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
NickG21 Posted January 5, 2007 Author Share Posted January 5, 2007 hey everyone, i have a multiple form page that i am trying to store all the information for and eventually send an e-mailright now i have all of the forms displaying in one page but i am unable to set the variables and get the information out of them in order to send them in an e-mail. this is what i have gotten my code too. the last form posts to formmail.php but only sends the last variable posted on that last form. any idea what i could do?[code] <?php session_start(); foreach($_POST as $key => $var) { $_SESSION[$key] = $var; } IF (!isset($_POST['step'])) { include "ListInfo.php";} ELSEIF ($_POST['step'] == 2){ include "OptServices.php";} ELSEIF ($_POST['step'] == 3){ include "ContInfo.php";} ELSEIF ($_POST['step'] == 4){ include "BillInfo.php";} ELSEIF ($_POST['step'] == 5){ include "Survey.php";} ELSEIF ($_POST['step'] == 6){ include "Terms.php"; } ?>[/code]i have gotten my code down to this to display the pages thanks to some help around these forums Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.