首页 >后端开发 >php教程 > 请教这个赋值句子哪里不对

请教这个赋值句子哪里不对

WBOY
WBOY原创
2016-06-13 12:58:45950浏览

请问这个赋值句子哪里不对?

$mailbody=<<<mailbody<br />
<table width='100%' border='1' cellspacing='0' cellpadding='0'>  <br />
		<tr>    <td>Product NO. </td>    <td>"$_POST['productnumber']"</td>  </tr>  <br />
		<tr>    <td>Name</td>    <td>"$_POST['username']"</td>  </tr>  <br />
		<tr>    <td>Promotion code </td>    <td>"$_POST['promotion']"</td>  </tr>  <br />
		<tr>    <td>Mobilephone</td>    <td>"$_POST['mobilephone']"</td>  </tr>  <br />
		<tr>    <td>Age</td>    <td>"$_POST['age']"</td>  </tr>  <br />
		<tr>    <td>Sex</td>    <td>"$_POST['sex']"</td>  </tr>  <br />
		<tr>    <td>Address</td>    <td>}"$_POST['address']"</td>  </tr>  <br />
		<tr>    <td>Prescription Type </td>    <td>"$_POST['prescription']"</td>  </tr>  <br />
		<tr>    <td>Single PD </td>    <td>"$singlepd"</td>  </tr>  <br />
		<tr>    <td>Right PD </td>    <td>"$rightpd"</td>  </tr>  <br />
		<tr>    <td>Left PD </td>    <td>"$leftpd"</td>  </tr>  <br />
		<tr>    <td>Right OD SPH </td>    <td>"$_POST['odsph']"</td>  </tr>  <br />
		<tr>    <td>Left OS SPH </td>    <td>"$_POST['ossph']"</td>  </tr>  <br />
		<tr>    <td>OD CYL </td>    <td>"$_POST['odcyl']"</td>  </tr>  <br />
		<tr>    <td>OS CYL </td>    <td>"$_POST['oscyl']"</td>  </tr>  <br />
		<tr>    <td>OD AXIS </td>    <td>"$_POST['odaxis']"</td>  </tr>  <br />
		<tr>    <td>OS AXIS </td>    <td>"$_POST['oxaxis']"</td>  </tr><br />
</table><br />
mailbody;<br />
echo mailbody;<br />

------解决方案--------------------
把形如 "$_POST['productnumber']" 的改为 {$_POST['productnumber']}  这样

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn