Re: How to Request?
| From: | Chris Shiflett | Date: | Tue, 06 Apr 2004 08:04:57 +0000 |
| Subject: | Re: How to Request? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182446@lists.php.net to get a copy of this message | ||
--- Labunski <romans@skulme.lv> wrote:
> But for example I have a link "index.php?fd=car&c=green"..
> How to Request more then one variable if I want to get something like
> this:
>
> if(isset($_REQUEST['fd','c'])){ // incorrect form. How to write this
> correctly?
> $vehicle = ($_REQUEST['fd']);
> $color = ($_REQUEST['c']);
> }
You answer your own question immediately after you ask it.
Wrong: $_REQUEST['fd','c']
Right: $_REQUEST['fd']
$_REQUEST['c']
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/