case statement **
| From: | Curtis Cole | Date: | Mon, 18 Sep 2000 19:29:51 +0000 |
| Subject: | case statement ** | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17179@lists.php.net to get a copy of this message | ||
why does this code display the results of every case until one is posted by
the form???
<HTML>
<HEAD>
<TITLE>Select Case</TITLE>
</HEAD>
<BODY>
<P> </P>
<? selext case action ?>
<? case 1?>
<b>action is 1</b>
<? case 2?>
<b>action is 2</b>
<? case 3?>
<b>action is 3</b>
<? case else ?>
<form action="casetest.php" method="POST">
<select name="action">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<input type="Submit" name="s1" value="submit">
</form>
<? end select ?>
</BODY>
</HTML>
Curtis Cole
Programmer/Web Dev.
curtis@stcmail.com
http://www.stcinc1.com
800-933-4504
Fax: 334-666-8833