Jump to content

Archived

This topic is now archived and is closed to further replies.

hansman

header with a urlencode

Recommended Posts

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

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

Share this post


Link to post
Share on other sites
Try
[code]
<?
header ("Location: http://www.google.com/search?hl=en&q=".urlencode($_GET['input']));
?>
[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.