Passing parameters

From: Date: Thu, 05 Apr 2001 00:14:33 +0000
Subject: Passing parameters
Groups: php.db 
Request: Send a blank email to php-db+get-8225@lists.php.net to get a copy of this message
I am passing a button parameter. This sounds simple, but for some reason, it is not working. Here is a snipet of my code. echo "<table border='1' align='center'>"; echo " <form action='MemberAction.php' method='post'>"; echo " "; echo "<TR> <td colspan='2' align='center'> <input type='submit' name='btnChoice' Value='Save'> <input type='submit' name='btnChoice' Value='Delete'> <input type='submit' name='btnChoice' Value='View Members'> <input type='submit' name='btnChoice' Value='Main Menu'> </td> </TR>"; If I click on the Main Menu button. I thought the value should be Main Menu? What gets passed is "Save". Wierd at best. if ($btnChoice = 'Save'){ Do something }elseif ($btnChoice = 'Delete') { header("Location: MemberAdmin.shtml"); exit; } Am I missing something here. I am reading my books on the subject, and all looks correct. Thank you again for your help. Jim Ray

« previous php.db (#8225) next »