A simple CGI Form question

I copied this simple form off of a website and pasted it into Frontpage.  Currently Frontpage isn't allowing me to have the submit button send me a simple email.  Could someone tell me what I need to do to change in the code so that it will send me an email to info@mydomain.com (for example) using formail?  My webhost is a Linux host.

THANKS!!!

David

<td width="228">
                                          <font face="Arial, Helvetica" size="2">First Name:*<br>
                                          </font>
                                          <input class="box" style="BACKGROUND-COLOR: #ffffa0" size="25" name="fname"></td>
                                    </tr>
                                    <tr>
                                          <td width="228">
                                          <font face="Arial, Helvetica" size="2">Last Name:*<br>
                                          <input class="box" style="BACKGROUND-COLOR: #ffffa0" size="25" name="lname"></font></td>
                                    </tr>
                                    <tr>
                                          <td><font face="Arial, Helvetica" size="2">Phone
                                          Number:*</font><br>
                                          <input id="phone1" style="BACKGROUND-COLOR: #ffffa0" type="phone1" maxLength="3" size="3" name="phone1">&nbsp;-&nbsp;<input id="phone2" style="BACKGROUND-COLOR: #ffffa0" type="phone2" maxLength="3" size="3" name="phone2">&nbsp;-&nbsp;<input id="phone3" style="BACKGROUND-COLOR: #ffffa0" type="phone3" maxLength="4" size="4" name="phone3">
                                          </td>
                                    </tr>
                                    <tr>
                                          <td><font face="Arial, Helvetica" size="2">Alternate
                                          Phone Number:</font><br>
                                          <input id="altphone1" style="BACKGROUND-COLOR: #ffffa0" type="altphone1" maxLength="3" size="3" name="altphone1">&nbsp;-&nbsp;<input id="altphone2" style="BACKGROUND-COLOR: #ffffa0" type="altphone2" maxLength="3" size="3" name="altphone2">&nbsp;-&nbsp;<input id="altphone3" style="BACKGROUND-COLOR: #ffffa0" type="altphone3" maxLength="4" size="4" name="altphone3">
                                          </td>
                                    </tr>
                                    <tr>
                                          <td width="228">
                                          <font face="Arial, Helvetica" size="2">Email
                                          Address:*<br>
                                          </font>
                                          <input class="box" style="BACKGROUND-COLOR: #ffffa0" size="25" name="email"></td>
                                    </tr>
                                    <tr>
                                          <td width="228">
                                          <font face="Arial, Helvetica" size="2">Address:*<br>
                                          </font>
                                          <input class="box" style="BACKGROUND-COLOR: #ffffa0" size="25" name="address"></td>
                                    </tr>
                                    <tr>
                                          <td width="228">
                                          <table cellSpacing="0" cellPadding="0" width="190" border="0" id="table2">
                                                <tr>
                                                      <td><font face="Arial, Helvetica" size="2">
                                                      City:*<br>
                                                      </font>
                                                      <input class="box2" style="BACKGROUND-COLOR: #ffffa0" size="21" name="city"></td>
                                                </tr>
                                                <tr>
                                                      <td>
                                                      <table id="table3">
                                                            <tr>
                                                                  <td>
                                                                  <font face="Arial, Helvetica" size="2">
                                                                  State:*<br>
                                                                  </font>
                                                                  <select id="state" style="BACKGROUND-COLOR: #ffffa0" name="state" value>
                                                                  <option value selected>--</option>
                                                                  <option value="AK">AK</option>
                                                                  <option value="AL">AL</option>
                                                                  <option value="AR">AR</option>
                                                                  <option value="AZ">AZ</option>
                                                                  <option value="CA">CA</option>
                                                                  <option value="CO">CO</option>
                                                                  <option value="CT">CT</option>
                                                                  <option value="DC">DC</option>
                                                                  <option value="DE">DE</option>
                                                                  <option value="FL">FL</option>
                                                                  <option value="GA">GA</option>
                                                                  <option value="HI">HI</option>
                                                                  <option value="IA">IA</option>
                                                                  <option value="ID">ID</option>
                                                                  <option value="IL">IL</option>
                                                                  <option value="IN">IN</option>
                                                                  <option value="KS">KS</option>
                                                                  <option value="KY">KY</option>
                                                                  <option value="LA">LA</option>
                                                                  <option value="MA">MA</option>
                                                                  <option value="MD">MD</option>
                                                                  <option value="ME">ME</option>
                                                                  <option value="MI">MI</option>
                                                                  <option value="MN">MN</option>
                                                                  <option value="MO">MO</option>
                                                                  <option value="MS">MS</option>
                                                                  <option value="MT">MT</option>
                                                                  <option value="NC">NC</option>
                                                                  <option value="ND">ND</option>
                                                                  <option value="NE">NE</option>
                                                                  <option value="NH">NH</option>
                                                                  <option value="NJ">NJ</option>
                                                                  <option value="NM">NM</option>
                                                                  <option value="NV">NV</option>
                                                                  <option value="NY">NY</option>
                                                                  <option value="OH">OH</option>
                                                                  <option value="OK">OK</option>
                                                                  <option value="OR">OR</option>
                                                                  <option value="PA">PA</option>
                                                                  <option value="RI">RI</option>
                                                                  <option value="SC">SC</option>
                                                                  <option value="SD">SD</option>
                                                                  <option value="TN">TN</option>
                                                                  <option value="TX">TX</option>
                                                                  <option value="UT">UT</option>
                                                                  <option value="VA">VA</option>
                                                                  <option value="VT">VT</option>
                                                                  <option value="WA">WA</option>
                                                                  <option value="WI">WI</option>
                                                                  <option value="WV">WV</option>
                                                                  <option value="WY">WY</option>
                                                                  </select> </td>
                                                                  <td>
                                                                  <font face="Arial, Helvetica" size="2">
                                                                  Zip:*<br>
                                                                  </font>
                                                                  <input class="box2" style="BACKGROUND-COLOR: #ffffa0" size="4" name="zip">
                                                                  </td>
                                                            </tr>
                                                      </table>
                                                      </td>
                                                </tr>
                                          </table>
                                          </td>
                                    </tr>
                                    <tr>
                                                      <td><font face="Arial, Helvetica" size="2">
                                                      Interested in information regarding:*<br>
                                                      </font>
                                                      <input class="box2" style="BACKGROUND-COLOR: #ffffa0" size="26" name="cashflow"></td>
                                                </tr>
                                    <tr>
                                          <td><input type="hidden" value="ANB" name="from">
                                          <input type="hidden" value="/default.asp" name="formtype">
                                          <br>
                                          <input type="submit" value="Submit" name="btnsubmit">
                                          </td>
d_springerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gripeCommented:
You need to write the CGI application that processes the form values and sends the email. The form is only a method of collecting data and passing it to a handling application. The application can be written in many different languages. Some common languages for writing CGI are VB/ASP, Perl, C, etc. When you submit your form, your client is actually making a request to another page with the values in your form included either via a GET method (this is when you see form data in the URL) or POST method (The data is passed in the HTTP headers your client sends to the server).

In your example above, you also seem to be missing a <form> tag. It's in this tag that you define what the 'target' of your form data is. This is kept in a property called 'action'. So for instance, the following form tag sends the form data to the CGI script at /cgi-bin/myform.cgi:

<form name="myform" action="/cgi-bin/myform.cgi">
... form elements go in here ...
</form>

Hope this helps explain.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gripeCommented:
I'm sorry, I think I might have misread your question. Frontpage cannot process forms for you, you'll need to submit the form data to a webserver with CGI support configured to do this. You should publish your form & CGI to a (test?) webserver to verify that it's working.
0
nicholassolutionsCommented:
gripe is absolutely right (especially about needing the <form> tag). One place where you can get a very robust formmail script is here:

http://nms-cgi.sourceforge.net/scripts.shtml

download the compat one using the .zip link (I'm guessing you may not know how to deal with .tar.gz files), unzip it, and read the README and EXAMPLE files in notepad to see how to install and use the script on your server.

Cheers,
Matt
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

wilsoneCommented:
I dont think this is really a CGI question, to start off you need to change the form tag (which is not visible) to something like:

<FORM NAME="theform" METHOD="post"
ACTION="mailto:user@domain.com" ENCTYPE="text/plain">

This will launch a mailer on the client side to send the email.  

What are your expected actions of the form from the user's perspective?
0
nicholassolutionsCommented:
yes, it clearly is a cgi question. He does not want the user to email him using their own mail client and server. He wants something like formmail, where the form above passes values to a script which uses sendmail  (on his server) to send him an email with the values passed to the script. What he needs to change the form tag to is something like gripe suggested (not what wilsone has above). This is very easy to do using any number of free scripts (or you can write one yourself, but I assume the guy asking the question does not know how to do this or he would not be asking).
0
nicholassolutionsCommented:
Just to make what I said above a little clearer, just adding the form tag will do nothing in and of itself -- you need to make the page point to a script somewhere on your server that is set up to handle the information and send you an email.
0
d_springerAuthor Commented:
From within FrontPage I deleted the submit button and used FrontPage to insert a new one then I was given the choice to either have the form submitted using FrontPage or using an external CGI source like formail.cgi.

I have uploaded the form to my website www.sovereignfunding.com and tested it and it seems to be working fine.

Thanks Everyone!!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.