Results 1 to 4 of 4

Thread: how do i do this??????

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    81
    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 = "[email protected]"
    msg.SenderName = "WASP"
    msg.AddRecipient "[email protected]"
    msg.Subject = "Online Appraisel New User"
    msg.Body = "Welldone " & username & " You have been created as a new user"
    msg.Execute
    set msg = nothing

    %>

  2. #2
    Member
    Join Date
    Apr 1999
    Location
    Hyderabad,AndraPradesh,India
    Posts
    59
    hai,
    i think "username" is not name of the textbox

    check the name of the textbox in the newuser.asp

  3. #3
    Addicted Member Stephenb's Avatar
    Join Date
    Nov 2000
    Location
    Phoenix, Arizona.
    Posts
    172
    Or your request.querystring of username is empty.
    Stephen Boston
    Onward!
    VB6 Pro SP4, VBScript
    A+ Certified Techncian.
    No matter where you go, there you are.

  4. #4
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    newuser.asp
    Code:
    <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
    Code:
    username=request("username")
    
    ...rest of your code...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width