michellerobbins56
Programmer
Hi
I have a submit button input field for a form (called frmLogin) ...the code is as follows:
<input type="submit" name="btnLogin" value="Login">
This all works fine and I use the following code to determine if the submit button has been pressed on the page:
If Request.Form("btnLogin") <> "" Then ....
My plan is now to replace the basic submit button with an image. I am having trouble doing this. I have tried using
<input type="image".... but this does not work. I think the solution is using something like
onClick="document.frmLogin.submit();"
but I'm not sure how to implement this successfully as I find I cannot then use my earlier IF statement:
If Request.Form("btnLogin") <> "" Then ....
to tell if the button has been pressed (which is vital).
For some reason it can't work out if the button has been pressed or not.
How can I successfully use an image as the submit button and still carry on using my IF statement (so I can tell when the form submit button has been pressed)?
Thank you very much for any help.
I have a submit button input field for a form (called frmLogin) ...the code is as follows:
<input type="submit" name="btnLogin" value="Login">
This all works fine and I use the following code to determine if the submit button has been pressed on the page:
If Request.Form("btnLogin") <> "" Then ....
My plan is now to replace the basic submit button with an image. I am having trouble doing this. I have tried using
<input type="image".... but this does not work. I think the solution is using something like
onClick="document.frmLogin.submit();"
but I'm not sure how to implement this successfully as I find I cannot then use my earlier IF statement:
If Request.Form("btnLogin") <> "" Then ....
to tell if the button has been pressed (which is vital).
For some reason it can't work out if the button has been pressed or not.
How can I successfully use an image as the submit button and still carry on using my IF statement (so I can tell when the form submit button has been pressed)?
Thank you very much for any help.