Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 03-01-2007, 01:19 PM   #1 (permalink)
Inactive
 
schweermo's Avatar
 
Join Date: 08-04-06
Location: Omaha
Posts: 148
iTrader: 0 / 0%
schweermo is liked by many
Inserting some JS for a Mailer into my page

Okay, so I want to take the functionality and look of the form on this page () and put it into the news bar of the homepage http://spottedhorsevineyards.com

Here is the code that I extracted the form code from the mailer page.
Code:
Subscribe to one or more of our newsletters using the form below <br/><font class="required">required field</font><br/> <script language="Javascript" type="text/javascript"> function checkform() { for (i=0;i<fieldstocheck.length;i++) { if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") { alert("Please enter your "+fieldnames[i]); eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()"); return false; } } if(! compareEmail()) { alert("Email Addresses you entered do not match"); return false; } return true; } var fieldstocheck = new Array(); var fieldnames = new Array(); function addFieldToCheck(value,name) { fieldstocheck[fieldstocheck.length] = value; fieldnames[fieldnames.length] = name; } function compareEmail() { return (document.subscribeform.elements["email"].value == document.subscribeform.elements["emailconfirm"].value); } </script><form method=post name="subscribeform"><table border=0> <tr><td><div class="required">Email</div></td> <td class="attributeinput"><input type=text name=email value="" size="40"> <script language="Javascript" type="text/javascript">addFieldToCheck("email","Email");</script></td></tr> <tr><td><div class="required">Confirm email</div></td> <td class="attributeinput"><input type=text name=emailconfirm value="" size="40"> <script language="Javascript" type="text/javascript">addFieldToCheck("emailconfirm","Confirm email");</script></td></tr><tr><td colspan=2> <span class="attributeinput"><input type=checkbox name="htmlemail" value="1" /></span> <span class="attributename">I prefer to receive emails in HTML format</span></td></tr> </table><input type="hidden" name="list[1]" value="signup"><input type="hidden" name="listname[1]" value="News"/><div style="display:none"><input type="text" name="VerificationCodeX" value="" size="20"></div><p><input type=submit name="subscribe" value="Subscribe" onClick="return checkform();"></p> </form><br/><br/>
And this is the code that I want to insert it into

Code:
<td id="vline6"> <br></td> <td id="vline7"> <br></td> <td class="l_news" id="l_news"><h1>Latest News </h1> <p class="style3">Thursday, Febuary 28th, 2007 </p> <p>&nbsp;</p> <h2 class="style4">Great News!</h2> <p> <br>We finally got the last papers we needed to in order to sell our wine. Therefore, we can now sell our wine. If you have any further questions, please contact someone from Spotted Horse with any further questions. <font color ="#ffffff"><a href="contact_us.php">Contact Page</a></font>. </br>Thanks again!</br>~Spotted Horse Admin </p> <p>&nbsp;</p> <h2>&nbsp;</h2></td></tr> <tr> <td id="hline3" colspan="2"> <br></td> <td id="hline4" colspan="2"> <br></td></tr> <tr> <td id="hline5" colspan="2"> <br></td> <td id="hline6" colspan="2"> </table> <!-- news.html -->
I just inserted the form code into my news bar, and it looked the same, but it didn't actually add the name to the mailer list.

HELP!
schweermo is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
MASS E-MAILER PROGRAM? ttechfs Marketing Forum 11 12-26-2007 01:18 AM
How well do direct mailer programs work? mymoney26 Marketing Forum 2 06-25-2007 12:41 PM
Inserting RSS into a page John Scott Coding Forum 45 11-27-2005 12:00 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:44 PM.
© Copyright 2008 V7 Inc