PDA

Click to See Complete Forum and Search --> : how do i do this??????


Johnny23
Mar 18th, 2001, 04:09 PM
creating ne users
what do i do in my success.asp for to call the values of the texbox fields off the newuser.asp to send an email to admin that includes username surname ect ect??
as my admin gets his email but not with the username value in it???

<%
dim username

username = Request.form("username")


set msg = Server.CreateObject("JMail.SMTPMail")
msg.ServerAddress = "192.168.80.10"
msg.Sender = "wasp_admin@resource-edge.com"
msg.SenderName = "WASP"
msg.AddRecipient "wasp_admin@resource-edge.com"
msg.Subject = "Online Appraisel New User"
msg.Body = "Welldone " & username & " You have been created as a new user"
msg.Execute
set msg = nothing

%>

anand
Mar 19th, 2001, 08:26 AM
hai,
i think "username" is not name of the textbox

check the name of the textbox in the newuser.asp

Stephenb
Feb 25th, 2003, 01:42 PM
Or your request.querystring of username is empty.

andreys
Feb 25th, 2003, 08:23 PM
newuser.asp

<form method="POST" action="success.asp" name="form1">
<input type="text" value="<%=username%>" name="username">
<input type="submit" value="submit" name="cmdSubmit">
</form>


success.asp

username=request("username")

...rest of your code...