RE: [PHP] how to pass PhP variables thru HREF command

From: Date: Fri, 22 Jun 2001 11:24:42 +0000
Subject: RE: [PHP] how to pass PhP variables thru HREF command
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54864@lists.php.net to get a copy of this message
Hello! Yes, you are right. And ou can get passed values in the predication.php via: global $HTTP_GET_VARS; $hometeam = $HTTP_GET_VARS["hometeam"]; $awayteam = $HTTP_GET_VARS["awayteam"]; Best regards, Andrew Kirilenko, Seniour Programmer / System Administrator, Internet Service. -----Original Message----- From: David Yen [mailto:droshky@hotmail.com] Sent: Friday, June 22, 2001 3:46 AM To: php-general@lists.php.net Subject: [PHP] how to pass PhP variables thru HREF command Hi. am using SQL Server. I wrote a php page that displays the NFL game schedule after query the database. I want to create link to a game prediction page (written in php) for each game. There will be two variables that will be passed thru the Href command. Would the code look something like this? <a href="prediction.php?hometeam=<?echo $hometeam?>&awayteam=<?echo $awayteam?>"> ............</a> Thank you for your help. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#54864) next »