Passing String value cross pages using $_GET[]
Posted: Thu May 29, 2008 4:33 pm
Hello All,
I am having a problem passing a string value in a variable to another page. Only the first word in the string is being output in the other page. Here is the code snippet.
$output=mysql_result($result,$i,"Name_of_Co");
echo " $output ";
echo "<a href=Edit.php?Name_of_Co=$output> Click here to edit</a>";
As you can see I am trying to passing the name of companies in the $output variable. The problem is if the company name is a single word the word will be pass and output on the Edit page. But is there is space between the names of two of more words only the first word of the name will be pass and display.
I would like to pass the full companies name if its one word or more.
Can you kindly help me, I am at a lost here.
Thanks
Dave
I am having a problem passing a string value in a variable to another page. Only the first word in the string is being output in the other page. Here is the code snippet.
$output=mysql_result($result,$i,"Name_of_Co");
echo " $output ";
echo "<a href=Edit.php?Name_of_Co=$output> Click here to edit</a>";
As you can see I am trying to passing the name of companies in the $output variable. The problem is if the company name is a single word the word will be pass and output on the Edit page. But is there is space between the names of two of more words only the first word of the name will be pass and display.
I would like to pass the full companies name if its one word or more.
Can you kindly help me, I am at a lost here.
Thanks
Dave