Irish SEO,  Marketing & Webmaster Discussion
 
Affiliates get Paid On Results, Click Here!
 

Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2006, 11:26 PM
Hardcore Geek
 
Join Date: Aug 2006
Location: Dublin
Posts: 992
Gavin has a spectacular aura about
Default Submit Email Form

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.
__________________

Reply With Quote
  #2 (permalink)  
Old 02-12-2006, 11:36 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
daviddoran will become famous soon enough
Default

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.
Reply With Quote
  #3 (permalink)  
Old 02-12-2006, 11:54 PM
Hardcore Geek
 
Join Date: Aug 2006
Location: Dublin
Posts: 992
Gavin has a spectacular aura about
Default

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.
__________________

Reply With Quote
  #4 (permalink)  
Old 02-12-2006, 11:58 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
daviddoran will become famous soon enough
Default

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.
Reply With Quote
  #5 (permalink)  
Old 03-12-2006, 09:59 AM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 1,913
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

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
Reply With Quote
  #6 (permalink)  
Old 08-12-2006, 04:06 PM
Frontpage User
 
Join Date: Oct 2006
Posts: 19
victor will become famous soon enough
Default

Nice call louie - sweet and simple...
__________________
osd.ie
Reply With Quote
  #7 (permalink)  
Old 08-12-2006, 04:18 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 1,913
louie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud oflouie has much to be proud of
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

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
Reply With Quote
  #8 (permalink)  
Old 10-12-2006, 11:39 AM
kae's Avatar
kae kae is offline
Byte Wrangler
 
Join Date: Sep 2006
Location: monaghan
Posts: 54
kae will become famous soon enough
Default

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.
__________________
verens.com, webworks.ie
kfm.verens.com
Reply With Quote
  #9 (permalink)  
Old 10-12-2006, 01:25 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: Joost
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
daviddoran will become famous soon enough
Default

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.
Reply With Quote
  #10 (permalink)  
Old 11-12-2006, 05:53 PM
Hardcore Geek
 
Join Date: Aug 2006
Location: Dublin
Posts: 992
Gavin has a spectacular aura about
Default

Quote:
Originally Posted by kae View Post
My own opinion on this is; the OP appears to me to not be too comfortable with programming.
Yes very true although I am willing to learn

Thanks for the advice folks.
__________________

Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 10:47 PM.


Powered by: vBulletin Version 3.7.2, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.

Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56