/    Sign up×
Community /Pin to ProfileBookmark

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

Hi,

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:

[B][url]http://www.domainname.com?utm_source=XYZ_page&utm_campaign=XYZ_download&utm_medium=[/url][/B]
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.

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@jedaisoulJul 20.2013 — 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">

</form>

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.
Copy linkTweet thisAlerts:
@Marianna74authorJul 26.2013 — Thx jedaisoul ?
Copy linkTweet thisAlerts:
@alendonaldJul 26.2013 — If you pass any thing through Url so you can use get method. But it is not good for security purpose.
×

Success!

Help @Marianna74 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...