HTML - Form Submit Button Confirmation Dialog

Luminophore

New Member
this is a general form code\[code\]<form name="search_form" action="" method="POST"><input type="text" name="search_text"> <input type="submit" name="search_bt" value="http://stackoverflow.com/questions/3632530/Go"></form>\[/code\]is there a way could have a confirmation dialog saying 'Yes'\'No' or 'Confirm'\'Cancel' etc...One way i figured of dong is is with CSS Layer and JavaScript and Php... that have a php \[code\]isset(){}\[/code\] chechk on the button and when set display a Div displayed with two buttons and \[code\]onclick=func()\[/code\] JS function of those buttons have a php variable(flag) set and then i can \[code\]if(flag){}\[/code\] to continue or skip some code...well that is going to work and plus point is that i can have a well themed dialog box but i just wanna make my life easier...
 
Back
Top