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.
|