View Single Post
  #28 (permalink)  
Old 19-05-09, 05:35 PM
black-dog's Avatar
black-dog black-dog is offline
Senior Member
 
Join Date: May 2008
Location: Newcastle under Lyme
Posts: 205
Send a message via Yahoo to black-dog
Default

Quote:
Originally Posted by perplexed View Post
In the brain burning haze of coding problems i had quite forgotten about the register global issues.
Well I hadn't. That's what

$a=mysql_real_escape_string($_POST['a']);
$b=mysql_real_escape_string($_POST['b']);
$c=mysql_real_escape_string($_POST['c']);

was all about.

register_globals was a setting in earlier versions of PHP where a value from a form would automatically become a variable in the receiving script. This can be a security issue in badly written scripts ans so was set to off in later versions of PHP. It's been coming for years and so most scripts will have been changed. For good measure I escaped the variables because you can't trust user input when you are forming database queries (Google SQL injection)
__________________
black-dog
4theweb.co.uk Web stuff
slipperyhill.co.uk Band
Reply With Quote