Link to home
Start Free TrialLog in
Avatar of d_springer
d_springer

asked on

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>
ASKER CERTIFIED SOLUTION
Avatar of gripe
gripe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of d_springer
d_springer

ASKER

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!!!