Jump to content

[SOLVED] Form Get


WorldDrknss

Recommended Posts

This is probably a simple one but I am having problems with a search feature.

I use get as for my form method and I use mysql boolean mode for my searches.

My get variable returns:

search.php?srch=guides+procedures%2Bbylaws

I know the plus symbol is a space and %2B is suppose to equal a literal plus symbol but using the php function urldecode also turns that string into a space also.

 

I have tried:

$searchtxt = str_replace("%2B", "#43", $_GET['srch']); $srchr = urldecode($searchtxt);

and

str_replace("%2B", "#43", urldecode($_GET['srch'])

and I am stumped. It's probably because it is something so simple.

 

TIA

Link to comment
https://forums.phpfreaks.com/topic/70123-solved-form-get/
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.