【发布时间】:2011-09-26 07:16:28
【问题描述】:
我是 PHP 新手,但我正在为订单表单编写电子邮件脚本。
我拥有所有值和表单中没有的内容,其中包含一个为 javascript 访问客户端跨域的文本元素。
我还需要在 POST 时访问这些跨度值。
HTML:
<form name="myform" action="submit.php" method="post">
<strong>Price:</strong> $<span id="SMP">11.99</span>
<strong>Price:</strong> $<span id="SDP">11.99</span>
<strong>Price:</strong> $<span id="YTP">11.99</span>
<strong>Price:</strong> $<span id="SDP">11.99</span>
//bunch of input form code i truncated for readabilty
</form>
【问题讨论】:
-
顺便说一句,您不应该依赖 PHP 中的这些值:用户可以在发送表单之前从 HTML 中更改任何他想要的内容。