Automating POST/GET
| From: | Edward Tilley | Date: | Mon, 26 Apr 2004 04:58:50 +0000 |
| Subject: | Automating POST/GET | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184599@lists.php.net to get a copy of this message | ||
Hi - What am I doing wrong here? I am trying to run a remote "GET" method
action form without success - (so that I can submit my website to Google
without visiting their site manually).
I've tried ...
<?php
$siteurl = "www.whatever.com";
$description = "Description with spaces and commas, in it.";
include 'http://www.google.com/addurl?q=$siteurl&dq=$description';
//
Works - but passes the variable name instead of its value.Any variation from
this format doesn't work - such as double-quotes, periods, etc.
header("Location: http://www.google.com/addurl?q=$siteurl&dq=$description")
// Doesn't work - my IE6 browser won't make the remote call and instead
errors out trying to execute this script locally.
?>
Any help much appreciated...
Ed