Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 1
Name: Andy
Trades: 0
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 04:24 PM..
agent-vip is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-02-2007, 07:42 PM Re: Submit a form, with no submit button?
blue-dreamer's Avatar
King Spam Talker

Posts: 1,222
Location: Middle England
Trades: 0
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, 02:50 AM Re: Submit a form, with no submit button?
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
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

Please login or register to view this content. Registration is FREE
---

Please login or register to view this content. Registration is FREE

All My Sites Are Proudly Hosted @
Please login or register to view this content. Registration is FREE

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 Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 1.09946 seconds with 12 queries