I'm trying to think of the easiest way for me to get two fields to submit to a page that is 2 pages away. I know this isn't the best description so let me try to explain.
On page 1 will be the 2 fields, workshop title and instructor, when you click next you will be taken to the second php page that is a poll of 10 questions, when you submit it adds those results to a database and forwards you to the 3rd (different) php page that has 10 more type/text boxes and questions. The issue here is that the poll has its own polling system, while the text box questions email the results to a specific email address. I would like the 2 fields from page one to be included into that email, but how can this be done if its not on the same form?
I would like to not have them re-type the 2 fields again, and to make them hidden fields wont work either because the way the polling system works has its own submit button for each question, loses the hidden fields after submit, it just doesn't work.
I tried making the first page submit to a .txt file that holds the info until the 3rd page then it can read it, but then I have the issue with the PHP Mailer not understanding:
$f = fopen("data/title.txt", "r");
$titleA = fgets($f);
This works by itself out of the mailer.php
<?php session_start();
if(isset($_POST['Submit'])) {
$youremail = 'jsadkfjdslkfjs';
$to = $youremail;
$mailsubject = 'Workshop Feedback Form';
$body = $fromsubject.'
$f = fopen("data/title.txt", "r");
$titleA = fgets($f);
Workshop Title:
'.$titleA.'
Instructor Name:
'.$inameA.'
';
mail($to, $mailsubject, $body);
?>
I know this is long. I just hope some one can point me in the right direction, I am definitely over looking something.