Welcome Guest, please login or register.
Username:
Password:

News: Welcome to Hostpapa Forums!
Pages: [1]   Go Down
Topic Tools  
Read
January 26, 2008, 07:12:48 PM
milton
Newbie
*
Posts: 1



I have set up a contact me web form.  However, when I test the form, I do not get an email from the system with the information that was filled out on the form.  I put a valid email address where it asks for where the data should be sent.  Any suggestions on why I am not getting the data emailed to me?
Logged
 

Read
January 28, 2008, 11:04:37 PM
keaned
Newbie
*
Posts: 2



Milton,

I too am a HostPapa 'newbie' but I have used html forms to generate emails to myself via my employer's web server.  Forgive me if you already know the following:  An html form can not by itself generate an email message.  Usually you have to submit the form's input to a cgi-bin script on the host server (in this case HostPapa's) via the "action" and "method" parameters in the "form" tag: eg,
 <form ...
         action="http://some.server.ca//cgi-bin/some_script"
         method="post" >
   ...
 </form>
HostPapa may have a cgi-script that you can install into your site's cgi-bin folder. If not, I suspect you can find some freeware php script on the web. The script receives the form's input (the values 'submitted" by the user), converts the content to a set of 'fieldName=userInputValue' pairs, and sends these pairs a message to the "to" address specified in the form's input (or, possibly, to some address specified in the script.  You'll have to enable access to your cgi-bin folder via incoming forms. There's advice on the web on how to do that safely (check Apache documentation re cgi-bin and user forums).  Similarly re. getting a php script in cgi-bin to run on your site, check the online php docs and user forums.

Logged
 

Read
January 29, 2008, 07:34:58 PM
wspeeckaert
Jr. Member

**
Posts: 94



You can easily send an email using the PHP mail function.
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net