Re: checking multiple URL parameters
| From: | Christian David | Date: | Fri, 17 Sep 2004 16:12:12 +0000 |
| Subject: | Re: checking multiple URL parameters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196972@lists.php.net to get a copy of this message | ||
Dustin Krysak wrote:
> 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']
<?php
if (isset($_REQUEST['mov']) && isset($_REQUEST['year'])) {
$movie = $_REQUEST['mov'];
$year = $_REQUEST['year'];
?>
HTML CONTENT
<?php
}
else {
?>
OTHER HTML CONTENT
<?php
}
?>
Christian