Jump to content

[SOLVED] str_replace() help


quickstopman

Recommended Posts

im trying to make it so in my users edit profile page

the user can't put PHP, or Javascript in it.

i have a basic knowledge of what to do

here is what i think would work

if($aboutme) {
$aboutme = str_replace('<?', '...', $aboutme);
$aboutme = str_replace('?>', '...', $aboutme);
}

but thats probly wrong.

thanks!

Link to comment
https://forums.phpfreaks.com/topic/51595-solved-str_replace-help/
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.