|
-
Sep 30th, 2005, 07:30 AM
#1
Thread Starter
Fanatic Member
ASP Message Box
Does anybody know how to create a message box that will pop up and ask the user to enter in some data into a text box, sort of like a login.
-
Sep 30th, 2005, 11:11 AM
#2
Frenzied Member
Re: ASP Message Box
bezaman:
It isn't real clear what you are looking for?
If you just want some VBScript that will have a message box pop up and ask for a user's name, this will work:
Dim Greeting
Dim UserName
Dim TryAgain
Do
TryAgain = "no"
UserName = InputBox("Please enter your name:")
UserName = Trim(UserName)
If UserName = "" Then
MsgBox "You must enter your name."
TryAgain = "Yes"
Else
Greeting = "Hello, " & UserName & ", it's a pleasure to meet you."
End If
Loop While TryAgain = "Yes"
MsgBox Greeting
If you want an ASP file that will create a log in area, then try the attached file. Note: You will have to change a number of things such as the database and some of the other field references. You could just run the HTML and see if it is what you are looking for.
Good Luck
Last edited by AIS4U; Mar 25th, 2007 at 05:14 AM.
-
Oct 2nd, 2005, 04:34 AM
#3
Re: ASP Message Box
Or you can use javascript's alert() function which will work in all browsers.
alert('your text here');
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|