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

How to create PopUp Password Box!!!!!

Status
Not open for further replies.

quan

Programmer
Oct 3, 2001
58
US
Need to create a pop up user name, password input box on my website. Have tried searching the web but only come up with complicated examples. Want a box that pops up when someone selects a link, then the person can enter thier user name and password.

Thanks
 
In addition, then this info is sent to a cgi-script as formdata.

Thanks again
 
Have you tried creating a form and putting in in a layer and hidding it until you want it. Then make it visible.
 
Just want a pop up box where user can input name and password like ones that are on a million other sites,

Thanks
 
Main page:
<html>
<head>
<title> :: Main page :: </title>
<script language=&quot;JavaScript&quot;>
function loginpopup(){
wnd = window.open(&quot;login.html&quot;,&quot;login&quot;,&quot;width=280,height=100&quot;)
//upper line has to be on one line
}
</script>
</head>
<body>
<a href=&quot;javascript:loginpopup()&quot;>Click here to login</a>
</body>
</html>


Login page - login.html

<html>
<head>
<title> :: Login form :: </title>
</head>
<body>
<form method=&quot;post&quot; action=&quot;your.cgi&quot;>
Username: <input type=&quot;text&quot; name=&quot;username&quot;><br>
Password: <input type=&quot;passowrd&quot; name=&quot;password&quot;><br>
<input type=&quot;submit&quot; value=&quot;Login&quot;> <input type=&quot;reset&quot;>
</form>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top