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
[EMAIL PROTECTED]

 -----Original Message-----
From:   Jeff Lewis [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, July 11, 2001 10:22 AM
To:     [EMAIL PROTECTED]
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to