Code for embedded email form in Wordpress

Options

We are working with our web designer to add a sign up form for our emails to our WordPress webpage, but need help with the code.

Someone here was helpful enough to supply us with the code and some instructions, but I'm not clear about some of the instructions. I've asked the person to respond to my questions, but haven't heard back, yet, so I thought throwing it out to the larger community would be a good idea.

 

Here is the code and the instructions I received, and the question our web designer has is "what does the site refer to?"

 

 

1) You'll need to set up a survey in Luminate first that contains the fields you want for your email form (we ask for email & zip). You'll need to know the ID number of the survey.



2) You'll want to change the site in the first line of the code to your site and change the Survey_ID in the 3rd line.



3) Your designer will want to change all of the styling & the id and classes.



You can see this in practice at endgenocide.org





<form id="mail-updates" method="post" action="http://sdc.convio.net/site/Survey">

<input type="hidden" name="cons_info_component" id="cons_info_component" value="t">

<input type="hidden" name="SURVEY_ID" id="SURVEY_ID" value="2460">

<span class="f-btn"></span>

<input type="text" name="cons_email" id="cons_email" value="Email Address" onfocus="if(this.value=='Email Address') {this.value=''};" onblur="if(this.value==''){this.value='Email Address'};">

<input id="zip" type="text" name="cons_zip_code" value="Zip Code" onfocus="if(this.value=='Zip Code') {this.value=''};" onblur="if(this.value==''){this.value='Zip Code'};">

<span style="display: none;">

<input alt="This field is used to prevent form submission by scripts." id="denySubmit" name="denySubmit" type="text" value="">Please leave this field empty</span>

<button type="submit" class="f-btn btn btn-primary" name="ACTION_SUBMIT_SURVEY_RESPONSE"><i class="icon-chevron-right icon-white"></i></button>

</form>

Comments

Categories