Re: checking multiple URL parameters

From: Date: Wed, 15 Sep 2004 23:36:55 +0000
Subject: Re: checking multiple URL parameters
Groups: php.general 
Request: Send a blank email to php-general+get-196803@lists.php.net to get a copy of this message
same way, if i understand your questoin... if your url looks like this sometestpage.php?mov=something&year=1999 - the queries are seperated by the '&' char.. then $_REQUEST will have both mov and year elements in it so just as $_REQUEST['mov'] worked, so would $_REQUEST['year'] Jason Dustin Krysak <mailinglists@digitalcollision.com> wrote: > > 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 > >

« previous php.general (#196803) next »