Question : Follow up php question - php mailer

In a follow-up to question - http://www.experts-exchange.com/Web_Development/WebApplications/Q_26357020.html#a33291011.

I have an html form that is posting data to a php page that I want displayed and have an additional submit button if the displayed data is correct. I can email dirrectly from that page without any (well any more) issues, but would like to post from that page to a third one. The third page contains my email code, but I am not sure how to pass the variables from the original POST data to the third page.

I have read about hidden input boxes, but apparantly can't ge the syntax correct. Is this a good way to pass variables from one page to another or is there a better way?

Answer : Follow up php question - php mailer

Here is the general design pattern I would use.

Place the file upload portion of this on the last page.  You cannot pass an uploaded file from page to page (and if you figure out how to do that, the security geeks will shut you down fast).

Or upload the file, generate a permanent name for it from something like the md5() of the user-id, basename and timestamp, store it in a private directory on your server, and pass this file name along from page to page in the session.
Random Solutions  
 
programming4us programming4us