string replace

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
hi all i need to replace a space in a string of code... basically when
it creates this link it calls up the state name Like "New Mexico", how
would i replace the space in New Mexico making it newmexico. my code
is below.

 <a href="<?php echo(urlencode($_GET['state2']));?>/<?php

Re: string replace

Quoted text here. Click to load it

Don't know which variable you need to strip the space from but for startes  
have a look at:

Jari Lehtinen

Site Timeline