View Single Post
  #13  
Old 07-13-2011, 04:22 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: newsletter signup from html page

You can try something like this:
Code:
<form action="news.php" name="subscribeform" method="post"> <input type="hidden" name="subscribe_lng" value="en"> <table cellspacing="1" class="data-table"> <tr> <td class="data-name"><label for="semail">Your email:</label></td> <td class="data-required">*</td> <td><input type="text" class="input-email" id="semail" name="newsemail" size="30" value=""></td> </tr> <tr> <td colspan="3" class="iv-box-descr">Type the characters you see in the picture:</td> </tr> <tr> <td class="iv-box"> <div class="iv-img"> <script type="text/javascript" src="/skin/common_files/js/common.js"></script> <script type="text/javascript" src="/skin/common_files/lib/jquery-min.js"></script> <script type="text/javascript"> //<![CDATA[ var xcart_web_dir = ""; //]]> </script> <img src="/antibot_image.php?section=on_news_panel&amp;rnd=3826" id="on_news_panel" alt=""><br /> <a href="javascript:void(0);" onclick="javascript: change_antibot_image('on_news_panel');" rel="noreferrer">Get a different code</a> </div> </td> <td class="data-required">*</td> <td class="iv-box"> <input type="text" id="antibot_input_str" name="antibot_input_str"> <div class="button-row"> <button class="button" type="submit" title="Subscribe"> <span class="button-right"><span class="button-left">Subscribe</span></span> </button> </div> </td> </tr> </table> </form>

Or this:
Code:
<form action="news.php" method="post"> <input type="hidden" name="mode" value="subscribe"> <table cellspacing="1" class="data-table"> <tr> <td class="data-name"><label for="semail">Your email:</label></td> <td class="data-required">*</td> <td><input type="text" class="input-email" id="semail" name="newsemail" size="30" value=""></td> </tr> <tr> <td colspan="3"> <label class="news-item"> <input type="checkbox" name="s_lists[]" value="1" checked="checked"> News list1 name </label> <label class="news-item"> <input type="checkbox" name="s_lists[]" value="2" checked="checked"> News list2 name </label> <div class="button-row"> <button class="button main-button" type="submit" title="Subscribe"> <span class="button-right"><span class="button-left">Subscribe</span></span> </button> </div> </td> </tr> </table> </form>
Replace the "value" with the real news list IDs and "News listX name" with the real news list name.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote