RE: [PHP] Easy question...grabbing variables...
| From: | Sam Masiello | Date: | Wed, 11 Jul 2001 14:40:59 +0000 |
| Subject: | RE: [PHP] Easy question...grabbing variables... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57391@lists.php.net to get a copy of this message | ||
If you want to pass more than one variable via GET, you need to use an
ampersand (&) character for the variables after the first one (still using a
question mark for the first).
So in your case, you can have this:
http://wwbl.hyrum.net/send_email.php?to=4&from=25
Then within your send_email.php script, you can access $from which will have
the value 25 upon entry to your script.
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 x289
smasiello@synacor.com
-----Original Message-----
From: Jeff Lewis [mailto:jeff@hyrum.net]
Sent: Wednesday, July 11, 2001 10:22 AM
To: php-general@lists.php.net
Subject: [PHP] Easy question...grabbing variables...
Um, been using PHP for awhile now and don' even know how to grab these:
http://wwbl.hyrum.net/send_email.php?to=4;from=25
I have usually only passed one variable before so all I've need to do is
$toID=$to but how do I get from? I know I should know this but I am either
having a major brain fart or missed this in PHP 101 ;)
Jeff