Re: [PHP] $_POST in MySQL query issue...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I concur, assign the superglobal array to a variable ...



$Name = strip_slashes($_POST['elementName']);
$sql="INSERT INTO $table SET Name='$Name'"];

... and then use that opportunity to run additional checks on the content.

-- 
Jon Kriek
http://phpfreaks.com

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux