RE: [PHP] checking multiple URL parameters
| From: | Gryffyn, Trevor | Date: | Thu, 16 Sep 2004 15:15:13 +0000 |
| Subject: | RE: [PHP] checking multiple URL parameters | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-196870@lists.php.net to get a copy of this message | ||
I could have sworn that there was a function that dropped ALL GET values
into an associative array. Kind of the inverse of "http_build_query".
At any rate, you can keep doing (isset($_REQUEST['mov']) AND
isset($_REQUEST['year'])) and such. Is that your question? How do you
do AND and OR operations?
-TG
> -----Original Message-----
> From: Dustin Krysak [mailto:mailinglists@digitalcollision.com]
> Sent: Wednesday, September 15, 2004 7:33 PM
> To: PHP
> Subject: [PHP] checking multiple URL parameters
>
>
> Hi there, I am currently using the following code to display content
> based on the URL parameters....
>
> <?php
> if (isset($_REQUEST['mov'])) {
> $movie = ($_REQUEST['mov'])
> ?>
> HTML CONTENT
> <?php
> }
>
> else {
> ?>
> OTHER HTML CONTENT
> <?php
> }
>
> ?>
>
> now what I need to do is modify the code so that the script checks 2
> URL parameters, and has 2 variables defined (from the URL
> parameter)...
>
> So I need to also check if $_REQUEST['year'] is set as well as the
> original (both need to be set to get the first HTML content)
> AND I also
> need to set the variable of $year = ($_REQUEST['year']
>
> direction?
>
> d
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>