Results 1 to 2 of 2

Thread: Collectin data out of Forms

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Manchester
    Posts
    446
    <form action="wherever">
    <input type=hidden name="recipient" value="[email protected]">
    <input type=hidden name="subject" value="Register Form">
    <input type=hidden name="required" value="name">
    <input type=hidden name="required" value="email">
    <input type=hidden name="required" value="address">
    <input type=hidden name="required" value="city">
    <input type=hidden name="required" value="tel">
    <input type=hidden name="required" value="zip">
    <input type=hidden name="env_report" value="REMOTE_HOST,HTTP_USER_AGENT">
    <input type=hidden name="return_link_url" value="http://www.magenta-netlogic.com">
    <input type=hidden name="bgcolor" value="white">
    <input type=hidden name="text_color" value="black">
    </form


    Anyone tell me are i can get the infromation out a form like the above and create the "where ever" string to pass into a ASP file ie:
    postuser.asp?name=the form&email=the form etc..

    Many thanks

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    you are best just manipulating the original form and changing its method from POST to GET, but in case you cannot do this, you can use this code on the receiving page to redirect the form data to a page that uses the querystring:

    Code:
    <%@Language=VBScript EnableSessionState=False%>
    <% option explicit
    Response.Redirect "myPage.asp?" & Request.Form
    %>
    That's it!

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