Jump to content

form security


poe

Recommended Posts

what is the best way to ensure that your form is secure

 

i am using htmlspecialchars()

 

is this good enough?

 

if i have form:

 

<input type=text name=aboutme>

 

then in my php i have

 

$allaboutme = htmlspecialchars($_POST['aboutme']);

 

//sql statement

 

"insert into table ( `about` ) values( ".$allaboutme." )";

 

 

Link to comment
https://forums.phpfreaks.com/topic/51712-form-security/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.