Reply
Submit a form, with no submit button?
Old 12-02-2007, 03:13 PM Submit a form, with no submit button?
Junior Talker

Posts: 1
Name: Andy
I know this might seem like a simple question, but it appears it isn't.

Basically, i want a user login form (username and password) without any submit button. That's easy? I know you're able to get away with things like in field search forms.. (but i have done a little testing, it is only because this has one input field)

Code:
<form action="search.php">
<input type="text" value="Search text"/>
</form>
^ Would work (let you submit by pressing enter).. however, when we add another input field.. it wont work

Code:
<form action="search.php">
<input type="text" value="Username"/>
<input type="text" value="Password"/>
</form>
So.. it looks like, i am going to HAVE to use a submit button.. which is fair enough.. i can just hide it with css?

Code:
<form action="search.php">
<input type="text" value="Search text"/>
<input type="text" value="Search text"/>
<div style="display:none;"><input type="submit" value="this is hidden"/></div>
</form>
Ah.. that works.. on firefox.. internet explorer wont have any ofit.

It seems that internet explorer ignores all fields that are related to.. display: none, visibility:collapse;

I've been at this for quit a while now, so now i'm just going around in circles.

Any help is appreciated,
Thanks
Andy

Last edited by agent-vip : 12-02-2007 at 05:24 PM.
agent-vip is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 12-02-2007, 08:42 PM Re: Submit a form, with no submit button?
blue-dreamer's Avatar
Webmaster Talker

Posts: 723
Location: Middle England
My questions is why hide the submit button? Users look for a button to click and associate it with actioning what they are doing (such as submitting email or logging in). Not everyone knows to press the Enter button so if you find a solution I think you're getting minus points for usability!
blue-dreamer is offline
Reply With Quote
View Public Profile
 
Old 12-06-2007, 03:50 AM Re: Submit a form, with no submit button?
Moxxnixx's Avatar
33.33333333% Evil

Posts: 941
Name: Lance
Location: Swampland
Andy,
See if this helps...
http://www.thefutureoftheweb.com/blo...-ie-with-enter
__________________
Get your facts first, and then you can distort them as much as you please.
-Mark Twain

Add Webmaster-Talk to your Firefox Search Engine
Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Reply     « Reply to Submit a form, with no submit button?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12051 seconds with 12 queries