I need to pass the input/data from page 1 to page 2 and page 2 will then email the data to an email address. I found the below script for a website but it insert the data into a database. Can someone please help change the last part to emailing it? Thx.
It has a number of options. Trust me it is safe I have used it on my websites.
P.S: The last part has mysql_query. What you need to use is the mail() function.
11-13-2012, 10:26 PM
mail($to, $subject, $msg);
02-05-2013, 01:24 PM
I am using something similar but I have 3 pages of form data and the session data seems to drop when you go to page 3. So from page 1 to 2, no problem, but when you go to page 3 the data from page 1 is lost (and session hasn't timed out). Any thoughts?
02-05-2013, 01:36 PM
Wait I figured it out. I wasn't called session start before the header etc.