Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 8:28 on August 25, 2006

[PHP] Written submission on behalf of how wrong.

Dealing with the code :
[code]
Require_once ( 'conn.php');
$sql = "INSERT INTO shop (name, sex, qq, Curie, content)
VALUES ($name, $sex, $qq, $tx, $content) ";
Mysql_query ($sql);
[/code]


Form submitted by :
[code]
"Form name="_ftn1"" form1 "method=" get "action=" save.php ""
Name : the "input name="_ftn1"" name "type=" government "filled="f"" name ""
Sex : "select name="_ftn1"" sex "filled="f"" sex ""
"Value= option" 1 "Mr. selected>" /option>
"Value= option" 0 "and" Miss "/option>
"/select>
QQ:<input name="_ftn1" "qq" type= "government" filled="f" "qq" "
From : "input name="_ftn1"" rehabilitate "type=" government "filled="f"" rehabilitate ""
Head : "select name="_ftn1"" tx "filled="f"" tx ""
"Option value=" 01.gif "" 01</option>
"Option value=" 02.gif "" 02</option>
"/select>
Whispers : "input type=" radio "name="_ftn1"" qiao "value=" 1 "," is
"Input name="_ftn1"" qiao "type=" radio "value=" 0 "whether checked>
: "Textarea name="_ftn1"" content "filled="f"" content "and" </textarea>
"Input type=" submit "name="_ftn1"" submit "value=" submit ""
"A style='mso-footnote-id:ftn1'" http://www.basd-action.net/initiatives/index.php "and" return to the first page "/a></form>
[/code]

Possibly wrong here.
Dealing with the code :
[code]
$sql = "INSERT INTO shop (name, sex, qq, Curie, content) VALUES ($name, $sex, $qq, $tx, $content)";
[/code]
But we do not know why this wrong. But if I have here
$name, $sex, $qq, $tx, $content Replaced '. " $_POST[ 'Name']. " ','." $_POST[ 'Sex']. " ','." $_POST[ 'Qq']. " ','." $_POST[ 'Curie']. " ' '. " $_POST[ 'content']. " 'remarks. On it.




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com