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
echo(urlencode( $_GET['city2']));?>main.php?s tate2=<?php
echo(urlencode( $_GET['state2']));?>&city2=<?p hp
echo(urlencode( $_GET['city2']));?>"></a>
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
echo(urlencode( $_GET['city2']));?>main.php?s tate2=<?php
echo(urlencode( $_GET['state2']));?>&city2=<?p hp
echo(urlencode( $_GET['city2']));?>"></a>
Comment