Jump to content

Quotation


pedrobcabral

Recommended Posts

run your form variables through this:

[code]function format($text)
{
$text = preg_replace("/\W/", " ", $text);
return $text;
}[/code]

it will take out special chars to prevent injection, but it will also take out the @ symbol so be careful if you are using email address to as username or allowing special chars in password, if so you will need to tweek the reg expression a little
Link to comment
https://forums.phpfreaks.com/topic/36096-quotation/#findComment-171344
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.