View Single Post
Old 12-03-2012, 06:43 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,055 Times in 4,024 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Making it way way way too hard.

No JavaScript needed, at all.

Boiled down to the bare essentials:
Code:
<form method="get" action="http://yoohoo.com/login_whatever.php">
<input type="text" name="u" size="25">
<input type="text" name="username">
<input type="text" name="password">
<input type="submit" value="Go">
</form>
I don't know what the purpose of your name="u" field is, but it *TOO* will be send along to login_whatever.php as part of the URL.

If you don't need/want it, then omit it.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote