, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > User Help > Code Snippets > Newsletter Block

FlexCMS Support Forum


Newsletter Block
Started May 26, 2005 @ 2:31pm by otter
Post Message 
otter
Administrator



Posts: 177
 
Newsletter BlockMay 26, 2005 @ 2:31pm
If you'd like to offer your newsletter subscription in a block, follow these instructions:

1) Create a new block

2) Block Title: Newsletter

3) Cut and paste the following code into the Custom Block Contents area:


Code

print 'To subscribe to our newsletter, please enter your email address in the box below and click the "Subscribe" button.<br><br><form action="'.$MainURL.'/newsletter/subscribe_submit" method="post"><input type="text" name="Email" size="20" maxlength="50" style="'.$FormStyle.'"><br><input type="submit" value="Subscribe" style="'.$FormStyle.'">
</form><font size="1"><b>Note:</b>? You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.</font>';


4) Check the box next to Process PHP Code?

5) Save your block.

And that's it! Your block should look something similiar to this:



NOTE: Feel free to remove or modify the text located within the Print statement of the code.



ONLINE TRAINING CLASSES FOR FLEXCMS IN MAY: FlexCMS Basics (101), Sat., May, 15, 2010 & FlexCMS Blocks (Mon., May 10, 2010).
 

Post Message 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.08531 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS