Question : How can I have multiple buttons in HTML that POST to PHP?

Hi Experts

I'm sure this question is as old as the hills but I haven't been able to find an exisitng suitable answer on EE.

I have a HTML page that has two buttons, each of which I want to go to different PHP scripts. I need the form method to POST some variables to the script, so I am using buttons instead of just graphics and/or text.

I understand that the buttons have to be of the 'submit' type but can only make them all do the same thing!

This particular issue has two buttons, as mentioned, but I can see that I might need to have another page in my project that has more than 2 buttons.

How can I achieve this in PHP, or maybe Javascript?

Thanks
Dave

Answer : How can I have multiple buttons in HTML that POST to PHP?

Random Solutions  
 
programming4us programming4us