integrating a mailing list sign up form with constant contact

Mattk1983

Free Member
May 16, 2006
448
12
I have a simple form (name, email address) that I would like to integrate with constant contact so that it automatically adds email addresses to my database.

how easy is this to do? ive tried using the constant contact "sign up boxes" but the designs are too limited
 

Mattk1983

Free Member
May 16, 2006
448
12
thanks for the link - thats how i have styled the form i have made myself. the code for the constant contact template form just looks like jibberish to me though! :D

i was hoping there would be some clever bit of code i could use so that when a customer clicks submit on the form i have designed, it sends the email info to my constant contact database.

perhaps i was hoping for the impossible... :(
 
Upvote 0

Dibs_h

Free Member
Feb 2, 2009
97
13
thanks for the link - thats how i have styled the form i have made myself. the code for the constant contact template form just looks like jibberish to me though! :D

i was hoping there would be some clever bit of code i could use so that when a customer clicks submit on the form i have designed, it sends the email info to my constant contact database.

perhaps i was hoping for the impossible... :(

The form is one thing - you seem to lacking the php (I'm assuming - you can do it with JS, but I prefer php) that actually does the validation\parsing when the Submit button is clicked. Returning one to a "thank you" page if all is successful or pointing out the relevant errors\issues.

Try this tutorial,

http://www.phpeasystep.com/phptu/8.html

Bear in mind that it's far from anything which should be used in a live environment.

p.s. The tutorial sends an email to an email address, but there is no reason why you couldn't do an INSERT into MySQL, etc. instead or as well as. Or have the other end import emails from a specific folder\sender and load the contacts into the DB.
 
Last edited:
Upvote 0
D

Deleted member 35011

Most of these services have an API. Here's the Constant Contact API.

The mailform.php script needs adjusted to "ping" Constant Contact with the email address of the subscriber when the email goes out to you. Not something you'll be able to do yourself in the HTML form.

It'd take just a couple of hours max to do this for you if you want help.
 
Upvote 0

Mattk1983

Free Member
May 16, 2006
448
12
this is the code for their basic sign up box:

<!-- BEGIN: Constant Contact Basic Opt-in Email List Form -->
<div align="center">
<table border="0" cellspacing="0" cellpadding="3" bgcolor="#ffffcc" style="border:2px solid #000000;">
<tr>
<td align="center" style="font-weight: bold; font-family:Arial; font-size:12px; color:#000000;">Join Our Mailing List</td>
</tr>
<tr>
<td align="center" style="border-top:2px solid #000000">
<form name="ccoptin" action="http://visitor.constantcontact.com/d.jsp" target="_blank" method="post" style="margin-bottom:2;">
<input type="hidden" name="m" value="1101842533090">
<input type="hidden" name="p" value="oi">
<font style="font-weight: normal; font-family:Arial; font-size:12px; color:#000000;">Email:</font> <input type="text" name="ea" size="20" value="" style="font-size:10pt; border:1px solid #999999;">
<input type="submit" name="go" value="Go" class="submit" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif; font-size:10pt;">
</form>
</td>
</tr>
</table>
</div>
<!-- END: Constant Contact Basic Opt-in Email List Form -->
 
Upvote 0

alphanumeric

Free Member
Jan 26, 2009
471
90
Northamptonshire
this should make it look like your current form:

<!-- BEGIN: Constant Contact Basic Opt-in Email List Form -->
<div id="formheader">Sign up now to receive out latest 25% BMV leads and deals direct to your inbox </div>
<div id="form">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="contentmain">
<tr>
<td>Join Our Mailing List</td>
</tr>
<tr>
<td align="center" style="border-top:2px solid #000000">
<form name="ccoptin" action="http://visitor.constantcontact.com/d.jsp" target="_blank" method="post" >
<input type="hidden" name="m" value="1101842533090">
<input type="hidden" name="p" value="oi">
Email:<input type="text" name="ea" size="20" value="">
<input type="submit" name="go" value="Go" class="submit">
</form>
</td>
</tr>
</table>
</div>
</div>
<!-- END: Constant Contact Basic Opt-in Email List Form -->

its alot more basic than your form, and you will need to change the table layout to match etc, but it should reference your current css styles.
 
Last edited:
Upvote 0
D

Deleted member 35011

Duh - I've misread this entire thread twice today.

I had assumed the details had to go to both the email box they're currently going to as well as the Constant Contact database, but now I see your needs are simpler.

More sleep required.
 
Upvote 0

Latest Articles