babaMBA
Jul 16th 2007, 9:44 pm
I am using two forms on one .php page and both of them performing different functions.
I can get the submit of the button in the form by
if( $_post['btnSubmit'] )
{
do some thing
}
but in this case if user press enter button instead of clicking the submit button by mouse then the "do something " statments are not executed.
Plz help me that how can i solve my problem, I want my code to be executed by both click of mouse on submit button and the enter from keyboard.
Thx in Advance.
I can get the submit of the button in the form by
if( $_post['btnSubmit'] )
{
do some thing
}
but in this case if user press enter button instead of clicking the submit button by mouse then the "do something " statments are not executed.
Plz help me that how can i solve my problem, I want my code to be executed by both click of mouse on submit button and the enter from keyboard.
Thx in Advance.