Jump to content

Sending/receiving variables through email


komquat

Recommended Posts

Can I send a variable hidden in an email and get it back when they send it back?

 

$mail_message = "<table align='center' border='10'>
				<tr>
					<td>$_POST[user_name], you signed up for ---------, Please click on the register here link below</td>
				</tr>
				<tr>
					<form name='send_email' method='POST' action='http://www.andybourdeau.com/lee/register.php'>
					<input type='hidden' name='register_check' value='yes'>
					<input type='hidden' name='user_name' value='$_POST[user_name]'>
					<input type='hidden' name='user_pass' value='$_POST[user_pass]'>
					<input type='hidden' name='user_email' value='$_POST[user_email]'>
					<input type='hidden' name='first_name' value='$_POST[first_name]'>
					<input type='hidden' name='last_name' value='$_POST[last_name]'>
					</form>
				</tr>
				<tr>
					<td><a href='http://www.andybourdeau.com/lee/register.php' onclick='javascript:document.send_email.submit();return false;'>Register</a></td>
				</tr>
			</table>";

//Mail message Set up here
$mailmsg .= "<html>
			<title>Register</title>
			<body>";
$mailmsg .= "<p align='center'>$mail_message</p> \n";
$mailmsg .= "</body></html>";


$subject = "Register for Website";

$mailheaders  = 'MIME-Version: 1.0' . "\r\n";
$mailheaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

$mailheaders .= "From: [email protected]";

mail($to, $subject, $mail_message, $mailheaders);

 

I want to get the hidden variables back when I click the link in the email.

Link to comment
https://forums.phpfreaks.com/topic/56484-sendingreceiving-variables-through-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.