Jump to content

remove scripts from search post


monkeybidz

Recommended Posts

I have a form in html. Results from that form are posted to a php page where the result is:

The form:

 

<input type="text" name="query" id="query" size="40" value="<?  print quote_replace($query);?>" action="search_results.php" columns="2" autocomplete="off" delay="1500">

 

The PHP page:

 

$query = $_POST[query];

 

How can I remove any scripts that are injected in the form text field?

Link to comment
https://forums.phpfreaks.com/topic/201785-remove-scripts-from-search-post/
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.