求助各位大侠啊,帮帮忙,请尽量说的详细点,本人新手
$posting
our team will send the lastest meassage to $email_address.
Clickhereto continue.
";
<meta http-equiv="Content-Type" content="text/html"><title>handle_posting</title><?php $first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$email_address = $_POST['email_address'];
$sex = $_POST['sex'];
$posting = nl2br($_POST['posting']);
$name = $first_name . ' ' . $last_name;
echo <<<html
"<div>Thank you,$name for your posting:
<p>$posting</p>
<p>our team will send the lastest meassage to $email_address.</p>
html;
$name = urlencode($name);//使用urlencode进行链接
$email_address = urlencode($_POST['email_address']);
echo "<p>Click<a href="hand_posting.php?name=%24name&email_address=%24email_address">here</a>to continue.</p>";
?>
<br><font color="#e78608">------解决方案--------------------</font><br><br>" 加个分号 笨蛋!<br><br><br>";<br><br>另外请用echo 输出
<br><font color="#e78608">------解决方案--------------------</font><br><br>出现Parse error: syntax error, unexpected '$name' (T_VARIABLE) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\handle_posting.php on line 18错误<br><br>这种错误几乎是:不是哪里少了个分号,就是哪里少了个引号。
<br><font color="#e78608">------解决方案--------------------</font><br>少分号 <div class="clear"></div>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号