How to prevent SQL injection in your website
to prevent sql injection use mysql_real_escape_string,in the higher version of php magic_quotes will do the “/” adding infront the value.
to prevent sql injection use mysql_real_escape_string,in the higher version of php magic_quotes will do the “/” adding infront the value.
In this case you can use Post method see the example below create one php/html file : <html> <body> <form action=”output.php” method=”post”> Name: <input type=”text” name=”name”> <input type=”Submit” name=”Submit”> </form> </body> </html> if you execute the above page values will comes in the output.php file <?php echo $_POST[“name”]; ?>