echo "<a href=recordsub.php?name=".$_GET['name']."&fname=".$_GET['fname'].">Click Here</a>"; It works fine when name doesn't have white spaces but if name has white spaces it displays only first part of name and also doesn't show fname. Any help?
echo "<a href=recordsub.php?name=".urlencode($_GET['name'])."&fname=".urlencode($_GET['fname']).">Click Here</a>"; PHP: Although I strongly suggest to filter $_GET params to avoid XSS
try this echo "<a href=\"recordsub.php?name=".$_GET['name']."&fname=".$_GET['fname']."\">Click Here</a>";
write a code that will replace white spaces with + or %20 i had recently written similar code but it was in j2me try str_replace() Function eg