Re: [PHP] Using Switch to control form action . .

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Andre Dubuc wrote: I'd like to control which php file is called when clicking two buttons on the bottom of a form; one called Add Names, the other Submit I've tried the following with no success: *** form action= switch

Re: [PHP] Using Switch to control form action . .

2002-03-15 Thread Justin French
I haven't had any experience with switch at all, but I do have forms with multiple submit buttons. I've been running things slightly differently: FORM action=rap.php method=post ... input type=submit name=submit value=Add Names input type=submit name=submit value=Submit /FORM Then

Re: [PHP] Using Switch to control form action . .

2002-03-15 Thread Andre Dubuc
Thanks Miguel, I sort of figured I wasn't doing something right. Thanks for setting me straight on switching between html and php. Sort of basic, but I didn't know whether I needed to do that everytime. Sorry for the delay in replying -- just as I received your message, we had company over.

Re: [PHP] Using Switch to control form action . .

2002-03-15 Thread Andre Dubuc
Thanks Justin, It wasn't pseudo code -- I just didn't know what I was doing! : I didn't know I had to brace php code with ?php . . . ?. I like your method as well -- I'll give it a try. Thanks for replying, Regards, Andre On Friday 15 March 2002 19:58, you wrote: I haven't had any