two buttons
Posted: Thu Oct 11, 2007 4:32 am
I want to use 2 button in my PHP Form File (there are 10 fields)
button1 = Submit
button2 = preview
How can i check which button selected?
(some javascript will be OK)
-----------------------------------------------
My main script something like
button1 = Submit
button2 = preview
How can i check which button selected?
(some javascript will be OK)
-----------------------------------------------
My main script something like
Code: Select all
incude header.php
if preview button selected { display informations }
elseif submit button selected { include submit.php - exit }
myForm is hare