PHP Code:
$webinfo13=mysql_real_escape_string($_POST['Who_Now']);
The escape should remove the quotes and double quotes from the input. So even if they're entering them...they don't get saved, at least....I'm pretty sure.
http://us3.php.net/mysql_real_escape_string
edit:
But one thing I can think of...Is I'm assuming you're echo'ing a session variable? What I would do is....
Code:
if(!formPasses)
{
session echo = $_POST['Who_Now']
}
else
{
session echo = mysql_real_escape_string($_POST['Who_Now']);
}
that way, when the form fails, they see what they inputted, otherwise, you save what you want to be inputted (the escaped string)
Last edited by kbfirebreather; 06-22-2008 at 11:21 AM..
|