I am using a table with data in it to help create a list of links using php. for ($i=0;$i<$num;$i++) { $team=($result,$i,"team")//this line gets the team name. // if I echo $team out, i will get Holy Cross echo "<a href=team_schedule.php?$team=".$team.">".$team."</a>"; //This code is supposed to produce a link that reads <a href=team_schedule.php?team=holy cross> but for some reason this only produces <a href=team_schedule.php?team=holy. It doesnt recognize anything after the space. Any ideas why this happens and what can be done to make this work. This only happens when the team I am pulling from the table has two words with a space. The info cannot be altered. Any ideas? }