Re: Automating POST/GET

From: Date: Mon, 26 Apr 2004 05:06:32 +0000
Subject: Re: Automating POST/GET
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184601@lists.php.net to get a copy of this message
Carefully read the section on "Variable parsing" at http://www.php.net/manual/en/language.types.string.php Monday, April 26, 2004, 6:58:50 AM, thus was written: > 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

« previous php.general (#184601) next »