How to Pass a value via href - PHP

Viewed 58623

Am passing a value using href tag

In first page Href tag used as

echo "<a href=view_exp.php?compna=",$compname,">$compname</a>";

In the Second page used

$compname = $_GET['compna']; 

To receive the Compna values are pass but only the first word is passed remaining words are skipped.

Compname as " Chiti Technologies Ltd " When I pass the value I receive onlt "Chiti"

5 Answers
Related