![]() | |
| |||
| I am planning to start a monthly newsletter for one of my sites so I am needing some code. Can anyone recommend any code that allows visitors to submit their email address. Also, if they do submit their email address is their anything that can be done to keep them on the same page they were reading? I am using include files with HTML. |
| ||||
| Hi Cormac, Are you planning to manually CC a list of people who subscribed or would you like to have some software automatically do it? Allowing sign-up via a form is quite easy, as is storing the email-address, if you would like a web application that allows you to format your email and send it then I'm sure there's one out there. As for keeping them on the same page, there are two options: - Have the form dynamically submit via AJAX (no page reload). - Or have the form submit to a processing page and then back to the page they were on. |
| |||
| I would just want their email address sent to my own so I can add it to an excel sheet for later. I have always been meaning to learn Ajax, I suppose this project would probably be the best to start with. |
| ||||
| I that case then what you want is: (I am assuming you are using PHP) - SAJAX (for implementing AJAX) - modernmethod.com/sajax/ - set the onsubmit value of your form to the AJAX call. - Have your backend receive the email and use PHP mail function to send to you. Basically. |
| ||||
| using Ajax just for a simple matter like that is too much work. If you use include files and have the form displayed on every page, leave the action field empty, this way the form will submit to the same page you are on, or grab the page name and query string. Inside the form ad a hidden field named "email_subscribe" or something unique with the value="1". Inside the include page, before the form add your code to verify the email, and if no errors found, either added to a database or email it to yourself, then shown a nice "Thank you" message.
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| ||||
| Thanks. I thought using Ajax for a simple matter like that was too much.
__________________ :. Web Design & Development Web Design Ireland :. Search Engines Optimization Search Engines Optimization :. Directory Submission Directory Submission :. News & Press Release Ireland GiveItSocks.com :. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories :. I Have 2 Find It Directory SEF Directory |
| ||||
| louie, got to admit, though, that AJAX, even for tiny thins, really adds a little "sparkle" to a website. My own opinion on this is; the OP appears to me to not be too comfortable with programming (or he would have mentioned a language, etc), so a non-programming solution would probably be right for him. Probably something as simple as this would do the trick: <a href="mailto:subscribe@blah.blah.com?subject=subsc ribe_me">Click Here to subscribe</a> Yes, the "?subject=" bit is non-standards-based, but (and this is the important bit) it works. |
| ||||
| That's all well and good but I don't know any non-technical person who has their email software setup. It's a five minute job in PHP anyway. |
| |||
| Quote:
Thanks for the advice folks. |
| Thread Tools | |
| Display Modes | |
|
|
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Email Marketing Software / Services | blacknight | Email Marketing | 5 | 07-05-2008 03:14 PM |
| Newbie to Email Marketing | Fintan | Email Marketing | 6 | 20-01-2008 01:26 PM |
| Email marketing compared to direct marketing. | JCB | Email Marketing | 27 | 10-09-2007 08:45 PM |
| Website not sending email to own domain | cmccar | Server / Technical Administration Tips and Queries | 5 | 05-10-2006 06:58 PM |
| prevent mass email | louie | Coding Help | 2 | 08-07-2006 09:34 AM |