Use a text box in a form and have the form's action go to the asp page.
Like this:

<form action="Process.asp" id="frmMember" name="frmMember" method="post">
<table border=1 cellPadding=1 cellSpacing=1 width="600">
  <tr>
    <td width=100>Username:</td>
    <td>&nbsp;<INPUT id="txtUN" name="txtUN" maxLength="20"></td>
  </tr>
  <tr>
    <td>Password</td>
    <td>&nbsp;<INPUT type="password" id="txtPW" name="txtPW"
maxLength="20"></td>
  </tr>
  <tr>
    <td><INPUT type="submit" value="Submit" id=submit1 name=submit1></td>
    <td><INPUT type="reset" value="Reset" id=reset1 name=reset1></td>
  </tr>
</table>
</form>

Process.asp will receive the form data.  You access it by using a
'strUsername = Request.form ("txtUN")' command.

HTH
Diane

-----Original Message-----
From: Hohimer, Christopher J [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 3:19 PM
To: ActiveServerPages
Subject: Prompts in ASP


Ok here's my situation. I want to prompt the user for a username when
entering my site
Like the javascript prompt and pass it off to asp for use later. How can I
do this

So it would be like this
<html>
<head>
<script language='javascript'>
        userid=prompt("hi, what's your username", "username")
</script>
<body>
<p>your userid is: <% =userid %>
</body>
</html>


---
You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to