I'd like to put a form on our website that users can fill in to get more information. Something very simple: their email, their question.
I tried to use the one from CPanel, and got stuck. cgiemail is now installed in the cgi-bin directory, but I've no idea how to use it. The FAQ points to a tutorial for FormMail, which says configuring it is easy and then loses me. (Change the perl script?)
As I understand it, I have to do the following:
1. Install a cgi program on the server. (I think that's done, thanks to my experiments with CPanel, but I've no clue how it's configured or how to check. There is definitely a file named www.mydomain.ca/cgi-bin/cgiemail , but I'm not even sure if this is the program the tutoiral is for.)
2. Put something like the following in my html code:
<FORM method=POST action="http://www.mydomain.ca/cgi-bin/cgiemail">
Your email:
<BR>
<input type="text" name="email" size="40">
<BR>
Your question:
<BR>
<textarea cols="50" rows="15" name="question">
</textarea>
<BR>
<input type="submit" value="Send">
</FORM>
3. The user fills in the form, hits "Send", and I will get an email with his email and question.
So:
a) How do I tell the cgi where to send the question? (webmaster@mydomain.ca)
b) Will the cgi tell the user they've done it right? (I just hate clicking a button and not knowing if it worked.)
Thanks in advance!