我是一个php菜鸟,帮忙看一下这代码有什么问题,有赏
本帖最后由 Jonnes 于 2011-9-10 23:00 编辑<?php
$signup_id = "$_POST['signup_id']";
$_ci_first_name = "$_POST";
$_ci_last_name = "$_POST";
$_ci_company = "$_POST";
$_ci_address1 = "$_POST";
$_ci_address2 = "$_POST";
$_ci_city = "$_POST";
$_ci_state = "$_POST";
$_ci_state2 = "$_POST";
$_ci_country = "$_POST";
$_ci_postal_code = "$_POST";
$_ci_phone = "$_POST";
$_ci_email = "$_POST";
$_mod = "$_POST";
$login = "$_POST";
$password = "$_POST";
$password2 = "$_POST";
$_eul_accept = "$_POST";
$type_domain = "$_POST";
$plan_id = "$_POST";
$action = "$_POST";
$signup = "$_POST";
var_dump(filter_var($_ci_email,FILTER_SANITIZE_EMAIL));
echo "<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="t_om_2009@yeah.net">
<input type="hidden" name="item_name" VALUE="Payment">
Plan & Time:<br /><input type="radio" name="amount" value="1"/>Linux-A(1 Month)
<br /><input type="radio" name="amount" value="3"/>Linux-A(3 Month)
<br /><input type="radio" name="amount" value="6"/>Linux-A(6 Month)
<br /><input type="radio" name="amount" value="12"/>Linux-A(1 Year)
<br /><input type="radio" name="amount" value="2"/>Linux-B(1 Month)
<br /><input type="radio" name="amount" value="6"/>Linux-B(3 Month)
<br /><input type="radio" name="amount" value="12"/>Linux-B(6 Month)
<br /><input type="radio" name="amount" value="24"/>Linux-B(1 Year)
<br /><input type="radio" name="amount" value="5"/>Linux-C(1 Month)
<br /><input type="radio" name="amount" value="15"/>Linux-C(3 Month)
<br /><input type="radio" name="amount" value="24"/>Linux-C(6 Month)
<br /><input type="radio" name="amount" value="33"/>Linux-C(1 Year)
<br /><input type="radio" name="amount" value="8"/>Linux-D(1 Month)
<br /><input type="radio" name="amount" value="24"/>Linux-D(3 Month)
<br /><input type="radio" name="amount" value="48"/>Linux-D(6 Month)
<br /><input type="radio" name="amount" value="96"/>Linux-D(1 Year)
<br /><input type="radio" name="amount" value="11"/>Linux-E(1 Month)
<br /><input type="radio" name="amount" value="33"/>Linux-E(3 Month)
<br /><input type="radio" name="amount" value="66"/>Linux-E(6 Month)
<br /><input type="radio" name="amount" value="132"/>Linux-E(1 Year)
<br /><input type="radio" name="amount" value="2"/>Windows-A(1 Month)
<br /><input type="radio" name="amount" value="6"/>Windows-A(3 Month)
<br /><input type="radio" name="amount" value="12"/>Windows-A(6 Month)
<br /><input type="radio" name="amount" value="24"/>Windows-A(1 Year)
<br /><input type="radio" name="amount" value="3"/>Windows-B(1 Month)
<br /><input type="radio" name="amount" value="9"/>Windows-B(3 Month)
<br /><input type="radio" name="amount" value="18"/>Windows-B(6 Month)
<br /><input type="radio" name="amount" value="36"/>Windows-B(1 Year)
<br /><input type="radio" name="amount" value="10"/>Windows-C(1 Month)
<br /><input type="radio" name="amount" value="30"/>Windows-C(3 Month)
<br /><input type="radio" name="amount" value="60"/>Windows-C(6 Month)
<br /><input type="radio" name="amount" value="120"/>Windows-C(1 Year)
<br /><input type="radio" name="amount" value="18"/>Windows-D(1 Month)
<br /><input type="radio" name="amount" value="48"/>Windows-D(3 Month)
<br /><input type="radio" name="amount" value="96"/>Windows-D(6 Month)
<br /><input type="radio" name="amount" value="192"/>Windows-D(1 Year)
<br /><input type="radio" name="amount" value="23"/>Windows-E(1 Month)
<br /><input type="radio" name="amount" value="69"/>Windows-E(3 Month)
<br /><input type="radio" name="amount" value="138"/>Windows-E(6 Month)
<br /><input type="radio" name="amount" value="276"/>Windows-E(1 Year)
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="CNY">
<input type="hidden" name="return" value="http://199.127.218.177/psoft/servlet/psoft.hsphere.CP?template_name=submit/signup/end.sbm&signup_id=$signup_id&_ci_state=$_ci_state&_ci_email=$_ci_email&_ci_first_name=$_ci_first_name&_ci_postal_code=$_ci_postal_code&_ci_phone=$_ci_phone&password=$password&_mod=$_mod&_ci_company=$_ci_company&_eul_accept=$_eul_accept&type_domain=$type_domain&plan_id=$plan_id&signup_id=$signup_id&_ci_address2=$_ci_address2&password2=$password2&_ci_city=$_ci_city&_ci_state2=$_ci_state2&_ci_last_name=$_ci_last_name&action=$action&login=$login&_ci_address1=$_ci_address1&_ci_country=$_ci_country&signup=$signup" >
<input TYPE="Submit" VALUE="Submit" style="width: 200px;" >
</form>"
?>
?> echo " 内容 ";
里面的内容中的“ 应该改为 '
里面的内容中的 双引号 应该改为 单引号 默默等等楼下的回复,呵呵
页:
[1]