VirusDoctor Posted November 22, 2007 Share Posted November 22, 2007 <?php $strip_html[1] = strip_tags (sql_safe(trim($_POST["name"]))); ?> Would this be valid? Firstly as you can see, strip_html[1] is a variable. sql_safe is a sql injection prevention function. What I would like to know is, can one create a variable like this, using strip_tags, trim and the function in one? Quote Link to comment Share on other sites More sharing options...
trq Posted November 22, 2007 Share Posted November 22, 2007 What I would like to know is, can one create a variable like this, using strip_tags, trim and the function in one? Yes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.