request two items from an ASP page?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default request two items from an ASP page?

    How do I request two items from an ASP page to be displayed in the body of
    an email?
    The only thing I receive is the password - Mail.Body =
    Session("svPassword")
    the text field from the form on the ASP page doesn't show -
    request.form("email")
    At the moment my code is as follows -

    <% Set Mail=Server.CreateObject("CDONTS.NewMail")
    Mail.to = request.form("email")
    Mail.From = "me@myaddress.com"
    Mail.Cc = ""
    Mail.Subject = "Here is your password and username"
    Mail.Body = Session("svPassword") & request.form("email")
    Mail.Send
    Set Mail=nothing
    %>


    woodywyatt Guest

  2. Similar Questions and Discussions

    1. keeping items together on the same page
      Greetings, We're creating a 380 page PDF document from HTML, with Acrobat Standard 7.0 for the Mac. We need a way to keep images and their...
    2. master page items wont apply
      After making additions and changes to the master page in my calendar project, the new, added, and changed items won't appear on the pages. Not using...
    3. Creating master page where global items arearranged ABOVE local items
      When you create a mater page, obviously all the items are arranged below anything on the individual pages. Is there a way of creating a master...
    4. CS2 Master page items not aligned
      Here is my problem. I have two elements on my master page. Both are text boxes. One is overlapping the other to cover up an element in the bottom...
    5. linking to items on a page
      I've been trying to find out how to link from the top of a page to an item on the page. I have a book list, and I want to put a list of the...
  3. #2

    Default Re: request two items from an ASP page?

    If you are passing a Form variable called Email then your code should work.

    You can request lots of data to include in yor form, although you may wish to
    look at CDOSYS the replacement for CDonts in Windows XP and Server 2003.

    I have a free tutorial you can check out if you wish
    [url]http://www.cgw3.co.uk/tutorials/tutorial.asp?CategoryID=3&TutorialID=39[/url]

    Originally posted by: Newsgroup User
    How do I request two items from an ASP page to be displayed in the body of
    an email?
    The only thing I receive is the password - Mail.Body =
    Session("svPassword")
    the text field from the form on the ASP page doesn't show -
    request.form("email")
    At the moment my code is as follows -

    <% Set Mail=Server.CreateObject("CDONTS.NewMail")
    Mail.to = request.form("email")
    Mail.From = "me@myaddress.com"
    Mail.Cc = ""
    Mail.Subject = "Here is your password and username"
    Mail.Body = Session("svPassword") & request.form("email")
    Mail.Send
    Set Mail=nothing
    %>






    CarlGrint Guest

  4. #3

    Default Re: request two items from an ASP page?

    Thanks Carl
    Afraid I get errors using CDOSYS.
    I'm still not sure why my code doesn't work below.
    For example - Mail.Body = Session("svPassword") works fine.
    Where as Mail.Body = Session("svPassword") & request.form("email") doesn't




    "CarlGrint" <webforumsuser@macromedia.com> wrote in message
    news:d4b8oa$oc2$1@forums.macromedia.com...
    > If you are passing a Form variable called Email then your code should
    work.
    >
    > You can request lots of data to include in yor form, although you may
    wish to
    > look at CDOSYS the replacement for CDonts in Windows XP and Server 2003.
    >
    > I have a free tutorial you can check out if you wish
    > [url]http://www.cgw3.co.uk/tutorials/tutorial.asp?CategoryID=3&TutorialID=39[/url]
    >
    > Originally posted by: Newsgroup User
    > How do I request two items from an ASP page to be displayed in the body
    of
    > an email?
    > The only thing I receive is the password - Mail.Body =
    > Session("svPassword")
    > the text field from the form on the ASP page doesn't show -
    > request.form("email")
    > At the moment my code is as follows -
    >
    > <% Set Mail=Server.CreateObject("CDONTS.NewMail")
    > Mail.to = request.form("email")
    > Mail.From = "me@myaddress.com"
    > Mail.Cc = ""
    > Mail.Subject = "Here is your password and username"
    > Mail.Body = Session("svPassword") & request.form("email")
    > Mail.Send
    > Set Mail=nothing
    > %>
    >
    >
    >
    >
    >
    >

    woodywyatt Guest

  5. #4

    Default Re: request two items from an ASP page?

    Th obvious answer would be you either have no value for 'Email' or are using
    Get instead of Post for your form.

    Try using Request("email") this will look for both.

    If you look in the same section of my tutorials that i sent the CDOSYS
    tutorial, you will see a old Cdonts version, which might be of help....but I do
    recommend getting use to CDOSYS.


    Originally posted by: Newsgroup User
    Thanks Carl
    Afraid I get errors using CDOSYS.
    I'm still not sure why my code doesn't work below.
    For example - Mail.Body = Session("svPassword") works fine.
    Where as Mail.Body = Session("svPassword") & request.form("email") doesn't




    "CarlGrint" <webforumsuser@macromedia.com> wrote in message
    news:D4b8oa$oc2$1@forums.macromedia.com...
    > If you are passing a Form variable called Email then your code should
    work.
    >
    > You can request lots of data to include in yor form, although you may
    wish to
    > look at CDOSYS the replacement for CDonts in Windows XP and Server 2003.
    >
    > I have a free tutorial you can check out if you wish
    > [url]http://www.cgw3.co.uk/tutorials/tutorial.asp?CategoryID=3&TutorialID=39[/url]
    >
    > Originally posted by: Newsgroup User
    > How do I request two items from an ASP page to be displayed in the body
    of
    > an email?
    > The only thing I receive is the password - Mail.Body =
    > Session("svPassword")
    > the text field from the form on the ASP page doesn't show -
    > request.form("email")
    > At the moment my code is as follows -
    >
    > <% Set Mail=Server.CreateObject("CDONTS.NewMail")
    > Mail.to = request.form("email")
    > Mail.From = "me@myaddress.com"
    > Mail.Cc = ""
    > Mail.Subject = "Here is your password and username"
    > Mail.Body = Session("svPassword") & request.form("email")
    > Mail.Send
    > Set Mail=nothing
    > %>
    >
    >
    >
    >
    >
    >





    CarlGrint Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139