Custom Registration Form

Occasional Participant

Custom Registration Form

Greetings,
I would like to create a custom registration form on our website that would send the contacts directly into our list database. I have created an example (http://www.rodes.com/e-club.asp), but do not know the proper links/code to make it work. Please review the source code and let me know if this is possible. Thank you!
5 REPLIES 5
Frequent Participant

The code that drives the form you reference could be modified to submit contact information into your constant contact account. It looks like that code is somewhere else (<form id="command" method="post" action="/rnavmap/em/settings/siteVisitorSignup/previewSvsf" onsubmit="return false;">). Making that kind of a modification requires
1) An understanding of what that existing code does
2) Access to that existing code.
3) A bit of programming expertise
Tom M
Group Product Manager – Content Editing
Constant Contact
Occasional Participant

Okay, now that you have stated the obvious, can someone at CC assist me in providing the proper syntax and/or links to create a custom registration form on our website that will create registration data in our CC contact lists? Or, should I just save time and anguish by using the (overly) simple "Signup Box" on a web page?
Thank you!
Frequent Participant

I suggest starting with the SiteVisitorSign Up box you mention (which requires little programming expertise) or taking a look at the sample code on this web site. You will find sample code both in the API documentation (such as here: http://developer.constantcontact.com/doc/contactsCollection) and in the support forums (such as here: http://developer.constantcontact.com/node/35#comment-14 and, with our earlier API, at the bottom of this page: http://developer.constantcontact.com/doc/siteVisitorAPI ).


If you encounter a specific question or challenge, we will try and resolve it in this forum.
Thanks,
Tom Mignosa, Constant Contact
Tom M
Group Product Manager – Content Editing
Constant Contact
Participant

Here is the code I currently use for my newsletter signup:

<div id="signup">
<form action="http://www.(url).com/12all/box.php" method="post">
<img src="images/news_hdr.gif" width="176" height="49"/>
<p>Email Address: <br />
<input name="address" type=text size=20 maxlength="50"><br />
<input type="radio" name="action" value="subscribe" checked>Subscribe <br/>
<input type="radio" name="action" value="remove">Unsubscribe</p>
<p><input type="submit" value="Update"></p>
<img src="images/news-bottom.jpg" width="176"/>
</form>
</div>

I do have an API key but am wondering exactly how to change the above code to secure the emails in my CC account.
Frequent Participant

You have several options - depending on how closely you want the new sign-up form to reflect the existing form...and how much effort you are willing to apply.

If you do not want to write any code,
You can do *almost* exactly the same thing by using the SiteVisitorSignUp box. See the FAQ here:
http://constantcontact.custhelp.com/cgi-bin/constantcontact.cfg/php/enduser/std_adp.php?p_faqid=1641
That interactive process will create html for you, which you can insert into your home page.

That Site Visitor SignUp Box form does not have an 'unsubscribe' option (however, in looking at the current form on your website, unsubscribe was an awkward process with that dialog).

The contact can of course unsubscribe from the footer of any email you send them.

If you want the functionality to be exactly the same as your form, you will need to write some php to implement that behavior. I expect that the script you would need to write is much like the script you reference in your form (box.php), so you could start with that script. See the "Creating a Contact" and "Opting-out a Contact" sections of the Contacts Collection for detail on how to create or Opt-out a contact via the API.
Tom M
Group Product Manager – Content Editing
Constant Contact
Developer Portal

View API documentation, code samples, get your API key.

Visit Page