Re: HTLM forms and PHP]

From: Date: Tue, 30 May 2000 19:24:33 +0000
Subject: Re: HTLM forms and PHP]
Groups: php.general 
Request: Send a blank email to php-general+get-663@lists.php.net to get a copy of this message
On Tue, May 30, 2000 at 04:12:35PM +0100, Ryan Patrick wrote: > HI I have a HTML form that's basically a Customer Information Screen. I > want it to be both an Input screen and also double as a Search Screen. IE) I > have a Save and Find buttons where you would type in information and Either > do a FIND for the Customer Information or Save the Customer Information as a > New record. I was wondering if anyone can help me?? Either HTML wise or PHP > wise. I have the Find working fine. I can't figure out how to get the Save > button to preform the SAVE option. The Save button does the same as the > Find. > > Can anyone help me? > > Thanks, > Ryan. You should have something similar to this, correct? <input type='submit' name='find' value='Find'> <input type='submit' name='save' value='Save'> Then the page it posts to should have, if(isset($find)){ do find stuff } elseif (isset($save)) { do save stuff } That should work for you. -- Chris Moyer -- cmoyer@chekinc.com -- PHP Developer -- Chek.com

« previous php.general (#663) next »