cancel
Showing results for 
Search instead for 
Did you mean: 

HTML code for a simple subscription form

Occasional Participant

HTML code for a simple subscription form

I am getting soooooooo frustrated, I am hoping someone can help before I pull my last remaining hairs out.

 

I have been using the CCSFG (Constant Contact Form Generator) version 0.4 for the last few months and it was worked "ok".  Very clumsy and inconvenient, but it worked.

 

I am moving our site to a new host (forced move) and the CCSFG no longer works.  I tried updating it to 0.6, confirmed that PHP cURL is enabled, confirmed everything is set up correctly, outgoing connections on port 443 are enabled, but I can only get an authentication error.  Somehow the CCSFG software isn't able to authenticate with the CC server.    The new host uses suPHP (not sure if that has an impact on CCSFG or not?).

 

This is the nice, simple HTML form I was using with CCSFG:

 

<form id="ccsfg" name="ccsfg" method="post" action="/ccgen/signup/index.php">
<label for="FirstName"><b>First Name:</b></label><br>
<input type="text" id="FirstName" name="FirstName" style="background-color: #E89740; width: 150px;" /><br>
<label for="EmailAddress"><b>Email Address:</b></label><br>
<input class="orangeoptin" type="text" id="EmailAddress" name="EmailAddress" style="background-color: #E89740; width: 150px;" /><br>
<input type="hidden"  checked="checked"  value="My List Name" name="Lists[]" id="My List ID" />
<input type="hidden" name="SuccessURL" value="http://www.mysuccessurl.com" />
<input type="hidden" name="FailureURL" value="http://www.myfailureurl.com" />
<input type="submit" name="signup" id="signup" value="Submit" />
</form>

 

I need to know if is there any way I can use a similarly simple HTML form without the CCSFG software?  All I want is a simple optin box on our site!

 

 

"Join My List" box:  no, butt ugly, requires multiple steps for a visitor to sign up for a newsletter.

 

"Formstack" box:  no,  they are limited to 50 signups per month and offer no control over the design of the optin box.

 

"Custom API" box:  way too complicated and overkill for a simple signup form.  It would take me days to figure it out.

 

 

Can't we use a normal HTML form to add contacts like every other mailing list service?

 

 

 

44 REPLIES 44
CTCT Employee

Re: HTML code for a simple subscription form

Hi,

 

Thank you for the feedback. You've certainly done your homework as far as what we offer for signup forms, so I'm afraid i don't have any signup form options that you didn't list above.  To address the CCSFG issue, I would suggest making sure your new environment is running PHP 5 or higher and doesn't have any known issues making outside requests.

 

Given that the two other non-code options aren't acceptable to you, I would like to at least put in a small word for custom API code.  We have a PHP sdk with a signup form example built into it, so it would only require minimal modification to work, and you could change the visuals to your heart's content.  The PHP sdk is located here, and the example I'm referencing is addOrUpdateContact.php in the examples folder.  To get it working, you'd have to install the source code on your server (the entire php sdk source folder), obtain your API Key and access token by following the 3 steps on this page, and then plug those values into the code.  

 

I will pass on your feedback for a more customizable, out of the box solution for our users.  I know it would be put to good use.

 

Best Regards,

Shannon W.

API Support Specialist

Occasional Participant

Re: HTML code for a simple subscription form

Hi Shannon_W, thanks for the response.  I will take another look at the API and see if I can figure it out.  I'm hoping the documentation just made it sound more complicated than it really is.  :)

 

The new server definitely has PHP 5 - it's a brand new setup with WHM/cPanel and the latest versions of all the software.  If I can't figure out the API I will try to continue troubleshooting the CCSFG software.

 

Whatever ends up being the solution, I'll update this thread next week with the result. 

 

-Scott

 

 

Occasional Participant

Re: HTML code for a simple subscription form

OK, here’s what I did:

 

-          Registered at mashery and obtained my API KEY, Secret, and Access Token

-          Uploaded the entire PHP-SDK ‘src’ folder to our site

-          Edited addOrUpdateContact.php to insert our API Key and Access Token on the 2 appropriate lines

-          Uploaded addOrUpdateContact.php sample to our site

 

Upon visiting the page I get the error “Warning:  Invalid argument supplied for foreach() in /home/dedifin/public_html/src/Ctct/Services/ListService.php on line 31”  

 

Server software:

    Apache v 2.2.25 (current)

    PHP 5.4.17 (current)

    cURL is enabled

 

 

I sent an email to webservices@ with this info too but I wanted to update this thread to track the progress as well.

 

-Scott

 

 

CTCT Employee

Re: HTML code for a simple subscription form

Hi Scott,

 

Thanks for your patience.  We are investigating the issue and will get back to you when we know more about why the warning is occurring.

 

Best Regards,

Shannon W.

API Support Specialist

Occasional Participant

Re: HTML code for a simple subscription form

I just wanted to update this thread since we found a solution that is working great.

 

First: it was discovered that the current API (as of August 1st, 2013) does not work on the current version of cURL in PHP (5.4.17) when using the 64-bit version.    Tech support was able to verify PHP 5.4.12 running as 32-bit worked OK and it was unclear whether the latest update of PHP contained a glitch or if something was legitimately modified that now requires an update to the API.   Tech support is working on it.

 

But here's our solution: we discovered www.ccquick.com and it worked great.  It costs an extra $5 per month but we were able to obtain simple HTML forms that I could customize for our website.   I have no idea how a third-party service like ccquick.com can provide simple opt-in forms while ConstantContact can't, but they saved us the hassle of switching to another email newsletter service.   Whew!   No more API and no more CCSFG software.  :)

 

-Scott (the webmaster)

Solution Provider

Re: HTML code for a simple subscription form

I agree.  This is a major flaw with constant contact.  I have clients who would like to use Constant Contact but won't simply because it's so difficult to integrate on a website.  The current system is very inflexible.  Requiring a customer to pay a developer to create an API is frustrating.  I've had two clients who have gone to Aweber because of this issue.  Please put this on the list to fix!

Moderator

Re: HTML code for a simple subscription form

Thanks for the feedback.  Certainly understand the frustrations on the options we have.  I've forwarded your feedback on to our product team that developers our signup form tools and contact management tools.  If any update are made, we will certainly share them via our product release communications.

Dave Berard
Senior Product Manager, Constant Contact
Solution Provider

Re: HTML code for a simple subscription form

I agree that not providing code for a Simple HTML form with Name and Email is really hurting Constant Contact. I've recently become a Solution Provider for CC. But now I have to tell my customers I don't have a "Solution" for getting the Pop-up optin like aweber. I can only give them work-arounds that costs them extra money every month. 

 

I hope Constant Contact can realize that if they can provide simple HTML form code it's a Win-Win for everyone. We as Solution Providers can use some of the amazing pop-up email capture forms out there, my customers get more emails, and Constant Contact gains as well with clients getting bumped up in plan levels.

 

With the claims of the pop-up email capture form vendors of over 200-400% increased signups, this is great for my clients and great for Constant Contact. More email sign-ups means more $$ for Constant Contact. 

 

Let's get together, throw away the Red Tape, and get your customers, clients, and Solution Providers the tools that will bring happiness and harmony instead of frustraion, and to allow everyones business to grow.

Moderator

Re: HTML code for a simple subscription form

Thanks for the feedback.  I've passed this in to our Product Management team that does all of our Contact Management products.  Definitely understand the feedback and, as you can see from the thread here, is something that we periodically hear about.  The team will continue to monitor this feature and requests for it and prioritize accordingly. 

Dave Berard
Senior Product Manager, Constant Contact