Form isn't working.

Reply

Join Date: Sep 2005
Posts: 12
Reputation: soccerdevil221 is an unknown quantity at this point 
Solved Threads: 0
soccerdevil221's Avatar
soccerdevil221 soccerdevil221 is offline Offline
Newbie Poster

Form isn't working.

 
0
  #1
Jan 2nd, 2006
I made a form in that is supposed to send people's messages to my e-mail. How come it isn't working? The website it is on is:

http://www.freewebs.com/soccerman_291/qicpage.html
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: Form isn't working.

 
0
  #2
Jan 4th, 2006
It seems that this type of action may not work on all machines. You probably need internet explorer and outlook or some similar compatible combination browser and email clients. Take a look at these links:

http://www.netmechanic.com/news/vol3/form_no4.htm

http://www.wdvl.com/Authoring/HTML/Forms/mailto.html
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Form isn't working.

 
0
  #3
Jan 4th, 2006
The action tag is used to tell the browser which web server application will process the form data. The "mailto:" is used for hyperlinking to a client's email client. Combining them is... not going to work.

You need to use a server-side email script, in whatever language you use for server-side development.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: Form isn't working.

 
0
  #4
Jan 4th, 2006
Combining them is... not going to work.
Your basically wrong there Thomas. It does work.

I looked closer at the code for the given webpage and discovered the submit and reset butttons were outside the form element.

When I moved these I discovered that my machine tries to send using Outlook. If I didn't have outlook I suspect that it may not work... or the browser may try and send itself - I may try on linux later.
Last edited by alpha_foobar; Jan 4th, 2006 at 7:55 pm. Reason: Perhaps was clear in what I said was incorrect. The mailto option is not the best idea, as the links I included earlier indicate. But it does work in some environments. And its easy.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Form isn't working.

 
0
  #5
Jan 4th, 2006
That's what I said: "mailto" is an instruction to the client's email program. Thus, it is relying on machine-specific configurations. The proper way to email form data is to use a server-side email script.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 182
Reputation: alpha_foobar is an unknown quantity at this point 
Solved Threads: 3
alpha_foobar's Avatar
alpha_foobar alpha_foobar is offline Offline
Junior Poster

Re: Form isn't working.

 
0
  #6
Jan 5th, 2006
soccerdevil221: You will probably find that your web host does supply a sendmail script, in perl this is often called SendMail.pm. Sending email using this a matter of calling a function. But free webhosts often restrict this module so that it can only send email to the webmasters registered email address (to prevent it being used for spam).

The easiest way to get email to yourself from your website will be using the provided sendmail form. Alternatively you can use other fre web based email form providers, which can be used from any website: http://www.response-o-matic.com/overview.htm

Sorry none of this is a step-by-step guide, but hopefully it helps.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC