2values on form, help in catching as one.

From: Date: Wed, 02 Jul 2003 03:50:40 +0000
Subject: 2values on form, help in catching as one.
Groups: php.general 
Request: Send a blank email to php-general+get-153658@lists.php.net to get a copy of this message
I have this php code (below), My form passes 2 values w/c is TemplateOne and TemplateTwo I was wondering how could I make that in php to catch the value as one only? I tried this and it didn't work. But if the value is just one the case display it. Any ideas? <?php $v_template = $_REQUEST['TemplateOne'] ; $v_template = $_REQUEST['TemplateTwo'] ; switch($v_template) { case 'TemplateOne': echo "one"; break; case 'TemplateTwo': echo "two"; break; } ?> -- Thank you, Miranda, Louie

« previous php.general (#153658) next »