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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form code, trying to use submit 1

Status
Not open for further replies.

pantinc

Programmer
Jun 18, 2001
17
0
0
US
I'm trying to use a "submit" and its taking the information but its basically refreshing the page with the form information in the address bar...
There's nothing wrong with the actual .js file , so I am completely at a loss.

Here's the code, can anyone tell me what's wrong?

<form name=&quot;login&quot;>
Username:
<input type=&quot;text&quot; name=&quot;username&quot;>
Password:
<input type=&quot;password&quot; name=&quot;password&quot;>
<input type=&quot;submit&quot; name=&quot;login&quot; value=&quot;Salute!!&quot;
onClick=&quot;Login()&quot;>
</form>
-Sunny *:->*
 
try specifying <form name=&quot;login&quot; method=&quot;post&quot;>

now u can either specify a page to go to after clicking the submit in the onClick function or adding action=&quot;...&quot; after method=&quot;post&quot; in the form tag...

that should work i think..

arif ;-)
 
A) What is that Login() function that you are calling supposed to do?

B) Have you tried this?
<input type=&quot;button&quot; onclick=&quot;Login(); return false;&quot;>

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top