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: webmater@andybourdeau.com";

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