你好我从页面取值并获得在第二页whihch工作正常价值,但我必须在URL值发送要在URL发送会话值
<?php
session_start();
$_SESSION["email_address"] = $_REQUEST["email_address"];
echo "Favorite color is " . $_SESSION["email_address"] . ".<br>";
//$errors = '';
$myemail = '[email protected]';//<-----Put Your email address here.
$to_go="[email protected]";
$to = $to_go;
$email_subject = "Contact form submission: aaname";
$email_body = "You have received a new message. ".
" Here are the details: Kindly <a href='localhost/ci/email_wait.php?email_address='.echo $email_address.'&password'=.$password.'>
Click Here</a> to reset your password";
$headers = "From:". $myemail;
$headers .= "Reply-To: $email_address";
mail($to,$email_subject,$email_body,$headers);
//redirect to the 'thank you' page
echo "Mail Sent. Thank you we will contact you shortly.";
?>
注:此代码将不会在本地主机上工作。
请注意,您应该进行urlencode你放到一个URL – 2014-11-01 05:38:38
@Agha你的代码是打印在电子邮件的一切,我不希望你的代码的任何内容输出是您收到一条新消息。 **以下是详细信息:请 ** – 2014-11-01 05:41:37
非常感谢你 – 2014-11-01 05:53:49