首頁 >後端開發 >php教程 > 请教这个赋值句子哪里不对

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

WBOY
WBOY原創
2016-06-13 12:58:45942瀏覽

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

$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