/    Sign up×
Community /Pin to ProfileBookmark

passing variables to form

I have one registration form, but different links that you can click on to get to that form. Each link carries a variable that the form page uses to display the title of the form through javascript (eg: Register for Day 1, Register for Day 2, Register for Day 3, etc.). How can I get that variable to be passed with the email so the person getting it knows which day they signed up for?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliSep 15.2003 — add a hidden field in the form

such as

<input type="hidden" name="regType">

and when this page loads and you set the title for this form,right then set the input fields value to that as well

document.formName.regType.value="registration type";
Copy linkTweet thisAlerts:
@BluerockauthorSep 15.2003 — that's exactly what I needed, thank you!
Copy linkTweet thisAlerts:
@Khalid_AliSep 15.2003 — you are welcome?
×

Success!

Help @Bluerock 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.16,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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