View Single Post
Old 02-15-2003, 06:29 AM  
mrreuben
Registered User
 
Join Date: Jan 2003
Location: a galaxy far far away
Posts: 10
Quote:
Originally posted by MonkeyMan
Blah, it doesnt work becasue thers is a hahahahahahahahahaha involved that is converting the %26 when it generates the page.


can somone tell me how to do a simple character replacment?

like take a string and convert all the "|"'s in the string to "&"s using PHP

I think that would be the simplest way, but I dont know how to do it.

If you are generating pages using php use the urlencode() function on the url as you generating the page.

If you have them hard coded use str_replace:

mixed str_replace ( mixed search, mixed replace, mixed subject)

Without disecting yourscript thats 1 way to approach it.
mrreuben is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote