943,970 Members | Top Members by Rank

Ad:
Jan 2nd, 2006
0

Form isn't working.

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
soccerdevil221 is offline Offline
12 posts
since Sep 2005
Jan 4th, 2006
0

Re: Form isn't working.

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
Reputation Points: 20
Solved Threads: 5
Junior Poster
alpha_foobar is offline Offline
182 posts
since May 2005
Jan 4th, 2006
0

Re: Form isn't working.

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jan 4th, 2006
0

Re: Form isn't working.

Quote ...
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.
Reputation Points: 20
Solved Threads: 5
Junior Poster
alpha_foobar is offline Offline
182 posts
since May 2005
Jan 4th, 2006
0

Re: Form isn't working.

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.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Jan 5th, 2006
0

Re: Form isn't working.

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.
Reputation Points: 20
Solved Threads: 5
Junior Poster
alpha_foobar is offline Offline
182 posts
since May 2005
May 17th, 2010
0
Re: Form isn't working.
its easy in php, perl, python any serverside script
if your host includes a \cgi-bin folder off the root(the usual place for cgi scripts) Big Nosed Bird has a great, easy, internally documented, piece of cake to install and operate form handler freeware

the forms generated by the link posted immediately above still require a server handler to submit to, "form processor" in their documentation in php, if the host does not supply a sendmail handler server scripting (php asp),or access to cgi, for this account there are a number of hosted mail servers

it is possible to generate a link that accesses the user's email client to send directed prefilled mail on a single click, the names and details fields usually required for a serverside mail may have to be entered, but there is small chance of the email address being faked, something like
html Syntax (Toggle Plain Text)
  1. <a href="mailto:myaddress@myhost.com?subject=Mysite Web page Enqiry&body=Enquiry from Mysite, 'Contact Us' page.%0A%0aI am seeking further information on%0AItem __________%0A%0AItem __________%0A%0AItem __________%0A">email us</a>
Last edited by almostbob; May 17th, 2010 at 2:44 pm.
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
May 17th, 2010
0
Re: Form isn't working.
Does freewebs support/allow server-side scripts?

I see from their blurb that you can install all matter of apps/widgets. They have an email function:

Quote ...
Send Email Blasts To Your Members
Keep your visitors coming back for more by adding them to your own mailing list. Ongoing email updates help you share the latest and greatest from you and your website. We do the list management so you don't have to.
Whether or not this allows you to receive as well as send, I don't know.
Sponsor
Featured Poster
Reputation Points: 1048
Solved Threads: 949
Sarcastic Poster
ardav is offline Offline
6,698 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: HTML Problems...
Next Thread in HTML and CSS Forum Timeline: Chrome and Safari - Showing Code Instead Of Webpage





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC