Home >Backend Development >PHP Tutorial > 请教这个赋值句子哪里不对

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

WBOY
WBOYOriginal
2016-06-13 12:58:45961browse

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

$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']}  这样

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn