Jump to content


Photo

header with a urlencode


  • Please log in to reply
1 reply to this topic

#1 hansman

hansman
  • Members
  • PipPipPip
  • Advanced Member
  • 100 posts

Posted 21 July 2006 - 02:44 PM

with this code, it leads me to my own site, i want it to search google, the search box name is 'input

<? 
header ("Location: <a href=\"http://www.google.com/search?hl=en&q=".urlencode($_GET['input'])."\">");
?>


#2 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 21 July 2006 - 03:08 PM

Try
<? 
header ("Location: http://www.google.com/search?hl=en&q=".urlencode($_GET['input']));
?>

Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users