I have two buttons in my .shtml form page and in my .php result page, I want to determine which button the user click to submit the form to my .php page to process the form. I have tried this:
$btnSubmit = $HTTP_GET_VARS["btnSubmit"];
to get the value of $btnSubmit and then determine what the value is so I can process the request accordingly. However, I always get an error saying that I have an undefined index of btnSubmit. In my .shtml form page, the two buttons are defined with the same name except that the value property is different. Any help will be appreciated!
Many thanks in advance!
ljCharlie
$btnSubmit = $HTTP_GET_VARS["btnSubmit"];
to get the value of $btnSubmit and then determine what the value is so I can process the request accordingly. However, I always get an error saying that I have an undefined index of btnSubmit. In my .shtml form page, the two buttons are defined with the same name except that the value property is different. Any help will be appreciated!
Many thanks in advance!
ljCharlie