- - PR -
phpの$_POSTが受取れない
投稿者 | 投稿内容 | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
投稿日時: 2007-11-22 19:26
ご指摘の通りやってみたらうまくいくのですが、因みに たいしたプログラムではないので全文を載せさせていただきます。 <?php /** * Order.php is Vanish55 OrderSystem Order Sheet Create * * * <ul> */ require('../includes/DatabaseCommon.inc'); /** input Data Get */ /** $Mail = ""; $Yubin1 = ""; $Yubin2 = ""; $Jyu1 = ""; $Jyu1Name = ""; $Jyu2 = ""; $Jyu2Name = ""; $Jyu3Name = ""; $Kana = ""; $Name = ""; $TEL = ""; $FAX = ""; $Count = ""; print "<pre>"; print_r($_POST); print"</pre>"; $Mail = $_POST["$prm01"]; $Yubin1 = escapeshellcmd($_POST["$prm02"]); $Yubin2 = escapeshellcmd($_POST["$prm03"]); $Jyu1 = $_POST["Jyu1"]; $Jyu1Name = escapeshellcmd($_POST["$prm04"]); $Jyu2 = $_POST["Jyu2"]; $Jyu2Name = escapeshellcmd($_POST["$prm05"]); $Jyu3Name = escapeshellcmd($_POST["$prm06"]); $Kana = escapeshellcmd($_POST["$prm07"]); $Name = escapeshellcmd($_POST["$prm08"']); $TEL = escapeshellcmd($_POST["$prm09"]); $FAX = escpaeshellcmd($_POST["$prm10"]); $Count = escapeshellcmd($_POST["$prm11"]); if ($Count == ""){ $Count = "0"; } $Tanka = $_POST["Tanka"]; if ($Tanka == ""){ $Tanka = "0"; } $Gokei = $_POST["Gokei"]; if ($Gokei == ""){ $Gokei = "0"; } $Soryo = $_POST["Soryo"]; if ($Soryo == ""){ $Soryo = "0"; } $Total = $_POST["AllTotal"]; if ($Total == ""){ $Total = "0"; } /** Database Update */ /** /* DB Connection */ if(!($conn = mysql_connect("localhost","KUMICHO", "nanami00"))){ print "database Connect Error"; } if(!(mysql_select_db("v55Order"))){ print "Database SELECT Error"; } if (!( mysql_query("begin;"))){ print "Transaction START Error"; } $SQL = "INSERT INTO OrderInf ("; $SQL = $SQL . "RecType, Or_AgSel, Or_Agency, "; $SQL = $SQL . "Or_Mail, Or_Yubin1, Or_Yubin2, "; $SQL = $SQL . "Or_Jyu1, Or_Jyu1Name, Or_Jyu2, Or_Jyu2Name, Or_Jyu3, "; $SQL = $SQL . "Or_TEL, Or_FAX, Or_Name, Or_NameKana, "; $SQL = $SQL . "Or_Count, Or_Tanka, Or_Gokei, Or_Soryo, Or_Total, Or_Nebiki, "; $SQL = $SQL . "Or_RequestDay, "; $SQL = $SQL . "SendRecord, Timestamp) "; $SQL = $SQL . "VALUES ("; $SQL = $SQL . "'Or', '0000', '00000000', "; $SQL = $SQL . "'" . $Mail . "', '" . $Yubin1 . "', '" . $Yubin2 . "', "; $SQL = $SQL . "'" . $Jyu1 . "', '" . $Jyu1Name . "', '" . $Jyu2 . "', '" . $Jyu2Name . "', '" . $Jyu3Name . "', "; $SQL = $SQL . "'" . $TEL . "', '" . $FAX . "', '" . $Name . "', '" . $Kana . "', "; $SQL = $SQL . $Count . ", " . $Tanka . ", " . $Gokei . ", " . $Suryo . ", " . $Total . ", 0 , "; $SQL = $SQL . "'', '');"; if (!(mysql_query($SQL))){ /** print $SQL . "\n"; print "Order Request INSERT Error"; print "Jyu1Name = " . $Jyu1Name; print "Jyu2Name = " . $Jyu2Name; print "Jyu3Name = " . $jyu3Name; **/ } if (!( mysql_query("COMMIT;"))){ print "Ken_All_UTF INITIALIZE COMMIT Error"; } mysql_close($conn); ?> | ||||||||
|
投稿日時: 2007-11-22 20:09
"$prm01" は "prm01" のtypoですか? それとも、まんまソースのコピペですか? もしそうなら、$が余計です。 | ||||||||
|
投稿日時: 2007-11-22 20:24
御意。まんまのソースじゃないでしょうね。
#escpaeshellcmdって・・ 本当のソースを見たいです。 |