Re: Re: Newbie - Form Submission Question

From: Date: Sun, 18 Aug 2002 21:43:02 +0000
Subject: Re: Re: Newbie - Form Submission Question
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-15338@lists.php.net to get a copy of this message
As far as I know, each <form> tag can only have one action that is executed by any submit buttons in that form. You can however use the Javascript modifier onClick="" to call different javascript functions with each button. Where you go from there I don't know. If it were to me, I would have both buttons submit to the same script and go there. With the onClick modifier - An example which will open a Javascript alert box: <input type="button" onClick="javascript:alert('This is an onClick test');"> theN wrote: With regards to my original post, could you kindly give your input on the following -- * Can I remove the attribute "action=log_make.php" and assign individual scripts to each of the buttons? When I tried this the server said I could not do a POST on address/addhome.html. Thanks and Regards theN

« previous php.windows (#15338) next »