/    Sign up×
Community /Pin to ProfileBookmark

Drop Down box into different autoresponder campaigns

I wonder if someone could help me with the following problem. On the page [url]www.buffettsecretsrevealed.com[/url] there is a form that passes visitor information (name, email, country) to a “campaign” in [url]www.proautoresponder.com.[/url]

The key line of the form is:
<input type=”hidden” name=”campaign” value=”buffettsecretsrevealed”>
This says that the information is placed in the database called buffettsecretsrevealed within ProAutoresponder.

What I would like is to have three campaigns in ProAutoresponder. Let us call them bsraus, bsrusa and bsroth.

If the visitor selects the country “Australia”, then the above line should be: <input type=”hidden” name=”campaign” value=”bsraus”>

If the visitor selects the country “USA” or “Canada”, then the above line should be: <input type=”hidden” name=”campaign” value=”bsrusa”>

If the visitor selects anything else, then the above line should be: <input type=”hidden” name=”campaign” value=”bsroth”>

Then when the visitor clicks on the submit button, the information is placed into the correct database in ProAutoresponder.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@PittimannMar 07.2005 — Hi!

Example:[code=php]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Example</title>
</head>
<body>
<form name="myform" action="#" onsubmit="if(this.campaign.value==''){alert('Please select a campaign!');return false;}">
<input type="hidden" name="campaign" value="">
<select onchange="this.form.campaign.value=this.options[this.selectedIndex].value">
<option value="">select</option>
<option value="bsraus">Australia</option>
<option value="bsrusa">USA</option>
<option value="bsroth">other</option>
</select>
<input type="submit">
</form>
</body>
</html>[/code]
Cheers - Pit
×

Success!

Help @Valuenow 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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