Jump to content

[SOLVED] can't figure out


NickG21

Recommended Posts

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
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

hey everyone, i have a multiple form page that i am trying to store all the information for and eventually send an e-mail
right 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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.