Help needed with subscription form

This is a discussion on "Help needed with subscription form" within the Web Page Design section. This forum, and the thread "Help needed with subscription form are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 3rd, 2007, 05:46
Junior Member
Join Date: Aug 2007
Location: Australia
Age: 42
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Help needed with subscription form

Hi all

I've come up against another problem with my website. This time with my mailing list subscription form. Here is the code I was using.

Code: Select all
 
<CENTER><B><font size="3"><font color=red>Join our mailing list to receive our weekly newsletter and you could win the cool clip mp3 player above.</font></font></B></CENTER><p><p> 
<FORM METHOD="POST" ACTION="mailto:newsletter@free-electronics-source.com">
Name: <INPUT name="Name" value="" size="10"><BR> 
Email: <INPUT name="Email" value="" size="10"><BR>
Age:
<INPUT Type="radio" Name="age" Value="18-24">18-24 
<INPUT Type="radio" Name="age" Value="25-34">25-34<BR>
<INPUT Type="radio" Name="age" Value="35-44">35-44 
<INPUT Type="radio" Name="age" Value="45-54">45-54
<INPUT Type="radio" Name="age" Value="55+">55+
Country: <INPUT name="Country" value="" size="10"><BR>
<CENTER><INPUT Type="submit" Value="Submit"></CENTER>
</FORM>
Unfortunately, it didn't work. Rather than sending the email directly it opened my email client with a message to the email.

After searching the web I discovered that the newer web browsers are not compatible with the 'mailto' command so I've been searching for a way around it. I found a formmail script in one of the threads in here and adapted it but that didn't work either.

script used was;
Code: Select all
 <CENTER><B><font size="3"><font color=red>Join our mailing list to receive our weekly newsletter and you could win the cool clip mp3 player above.</font></font></B></CENTER><p><p> 
<form method="post" action="/cgi-sys/FormMail.pl">
Name: <INPUT name="Name" value="" size="10"><BR> 
Email: <INPUT name="Email" value="" size="10"><BR>
<input type="hidden" name="recipient" value="freeelectronicssource@freeautobot.com">
</p>
<input type="Submit" value="Submit" name="submit" onclick="return confirm('Thank you for submitting the form')"/>
</FORM>
Error returned was: Sorry I can't send to freeelectronicssource@freeautobot.com. Is freeelectronicssource@freeautobot.com on this server ?

I've looked at so many options my head is whirling. I've re done it about 10 times and nothing seems to work

Can somebody PLEASE help me... I'm getting so frustrated it's not funny. I'm all ready to market the site apart from that.

Sincerely

Julia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 3rd, 2007, 05:57
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help needed with subscription form

Have you got a database set up? You can't have the form info sent direct to an email address without the php, or whatever, files to process it first. Forms are tricky till you know what you're doing (like anything I guess!). When I do a form I just design the form and do the front bit like you have, then I have a kind friend who does the php bit for me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 3rd, 2007, 10:32
Up'n'Coming Member
Join Date: Nov 2006
Location: Ipswich
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help needed with subscription form

You can do this with the PHP mail function. You don't need to have a database set up to do it.

You'll need to learn how to handle forms with PHP.

Effectively, you write a query to see if the form has been submitted.

If it has then you send the email based on the responses you get.

If it hasn't then you display the form.

Good luck.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 3rd, 2007, 11:24
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help needed with subscription form

Yes, thanks Chris, you put it much better than I did! That's the PHP bit that my kind friend takes care of!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 3rd, 2007, 11:32
Up'n'Coming Member
Join Date: Nov 2006
Location: Ipswich
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help needed with subscription form

You should dive into PHP yourself Vanessa. It's great fun, and the simplest bits of knowledge can really make sites instantly more dynamic.

This book was (and still is) my god send. As far as "not at all scary" introductions go, this is a gem.

http://www.amazon.co.uk/Teach-Yourse.../dp/0340905565

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 3rd, 2007, 11:44
Highly Reputable Member
Join Date: Apr 2007
Location: Kent, England
Age: 38
Posts: 560
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help needed with subscription form

Yes, php is on my list of things I need to learn! Thanks for that book recommendation, I'll definitely look at that. Funnily enough my friend who does the php for me is also called Chris...it's not you in disguise is it?

Julia - sorry if we're hijacking your thread! If you're lost on doing the php, then it might be an idea to ask more about it within the php forum area.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 3rd, 2007, 11:48
Up'n'Coming Member
Join Date: Nov 2006
Location: Ipswich
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help needed with subscription form

Alas, no. I'm a bit of a bodger if the truth be told. I have no qualifications, no portfolio and no work experience. Just enthusiasm and delusions!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
help, subscription form

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a form for newsletter subscription jamesbowers Web Page Design 16 Jan 4th, 2007 09:36
Form Validation Help needed please chimp Web Page Design 4 Dec 2nd, 2006 22:38
Form security help needed moisea PHP Forum 3 Nov 6th, 2006 10:10
Form Help needed! Chris PHP Forum 3 Jul 2nd, 2006 20:08
Form Help Needed Please Learning1 PHP Forum 1 Jan 21st, 2006 16:58


All times are GMT. The time now is 23:45.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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