RE: [PHP] post without form
| From: | Boget, Chris | Date: | Wed, 16 Aug 2000 14:07:26 +0000 |
| Subject: | RE: [PHP] post without form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12005@lists.php.net to get a copy of this message | ||
> Is it posible to post certain variables without using a form?
> I need a Location to send with it some variables, but don't
> know how to do it. Is it posible?
You can do it using GET.
http://www.somesite.com/myfile.php3?var1=joe&var2=bob
and in myfile.php3, you can access the values of both var1 and
var2 as:
$var1
$var2
I believe there is a way you can do it via POST, but it involves
opening up a socket to the page or somesuch.
Chris