Jump to content

[WARNING!] Having serious issues with single quotes displaying in input value


onedumbcoder

Recommended Posts

so i have an input text box where someone enters a search word,

 

but i having trouble eching back what they typed in, the single quotes are messing everything up

 

$searchvalue	= str_replace('\'','\\\'', stripslashes($searchword));

$searchvalue       = "value='" . $searchvalue . "'";

 

is not working and I have no idea why

 

I tried just using addslaches that didnt work, i tried it without it that didnt work.

 

Please one of you gurus please help me!

 

i am spending the day crying over this.  :'(

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.