Results 1 to 4 of 4

Thread: Need to pass E-mail ID in URL through a form

  1. #1
    Join Date
    Jul 2013

    Need to pass E-mail ID in URL through a form


    I am a graphic designer and I have a one field form (user fills only e-mail ID and clicks on Submit button). On submitting the form, a PDF needs to be downloaded. Also, the URL should change like this:

    In the last part after the = sign (utm_medium=) email ID of the user should appear.

    I hope my query is simple to understand and any help will be greatly appreciated! Please help me with the entire code or with steps as to where to add the javascript/ php and what to add.

    Thanks in advance.

  2. #2
    Join Date
    Mar 2012
    You do not need PHP or javascript to do what you have asked for, (except perhaps downloading the PDF). I'm not sure how you want that to be done, so this is an outline of the basics only...

    <!-- http://www.domainname.com?utm_source...ad&utm_medium= -->

    <form action="http://www.domainname.com/" method=GET>
    <input type="hidden" name="utm_source" value="- put value here -">
    <input type="text" name="utm_medium" value="your email address">
    <input type="submit" value="Submit">

    Note: Include the utm_source, and any other values that need to be passed, in hidden input fields, except for the utm_medium, which is user input.

  3. #3
    Join Date
    Jul 2013
    Thx jedaisoul

  4. #4
    Join Date
    Jul 2013
    If you pass any thing through Url so you can use get method. But it is not good for security purpose.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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

Recent Articles