Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit Button in HTML form 1

Status
Not open for further replies.

ssnapier

Technical User
Feb 17, 2001
67
US
Ok, I should know how to do this, but for some reason I am having incredible trouble. I want to use my own button (image) rather than the standard old <input type=&quot;submit&quot; name=&quot;login&quot; value=&quot;Start&quot;>

What do I need to do to use my own button image, and still have it submit the form for processing?
 
Try :

<input type=&quot;image&quot; src=&quot;MyImage.jpg&quot; onClick=&quot;this.form.submit()&quot;>


If you want to perform any verification, then call some function onClick - but at any time you can submit the form using
document.formName.submit()
b2 - benbiddington@surf4nix.com
 
Ok, I am actually using this as an email login form, and the form name is login_form. The FORM tag has the following info:
<form name=&quot;login_form&quot; action=&quot; method=&quot;post&quot;>

and my button has the following, which is not working the right way:

<input type=&quot;image&quot; src=&quot;buttons/start1.gif&quot; name=&quot;img8&quot; onClick=&quot;document.login_form.submit()&quot; width=&quot;67&quot; height=&quot;67&quot;>

The image loaded, which is excellent, thank you for that, but now how do I make it submit correctly?
 
Is it not working? I can't see why? What is going wrong exactly? Bj
b2 - benbiddington@surf4nix.com
 
Well it sort of works.... it takes me to the right place, but the login and password do not seem to be getting processed, because it takes me to a &quot;please check your login&quot; page to re-enter the info. I just have not done this particular function before, and I am apparently missing a piece of the puzzle.
 
So it is actually submitting, which means the form is working properly, it sounds like there is either a problem with loginuser.pl file, or with entry of the password information.
b2 - benbiddington@surf4nix.com
 
Hello
MY name is shahzaib.I am student of b.com.I have start
e-commerce.i work photoshop and html,dhtml please support me
because i will complete then i will try Ammercia
 
Try America for what? If it was that easy to get in to work I'd be there right now! ;)
b2 - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top