Frontpage Form Problem

geek2009

New Member
Messages
1
Reaction score
0
Points
0
Hey guys, I'm having a problem making a form in Frontpage 2002. I really don't care how it's made, just so that it will email me at info@holdingfordhelpinghands.org when someone fills out the form. Below is the code for people to either signup for an email newsletter or standard email newsletter. The actual webpage that dosent work is www.holdingfordhelpinghands.org/newsletter.php
HTML:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Newsletter</title>
</head>
<?php
include ('Tops of pages.htm');
?>
<body bgproperties="fixed" background="Background%20color.gif">
<p>&nbsp;</p>
<p><font face="Times New Roman" color="#336666" size="5"><i><b>
Newsletter</b></i></font></p>
<p align="center"><font size="4">Please help us try to cut down our costs!</font></p>
<p align="center"><font size="4">You can do this by filling out the form below.</font></p>
<p align="center"><font size="4">By filling out this form with your email 
address, you are agreeing to </font></p>
<p align="center"><font size="4">receive the monthly newsletter by email instead 
of standard mail.</font></p>
<p align="center"><font size="4">An additional form is below to sign up for the 
monthly newsletter by standard mail.</font></p>
<p align="center"><font size="4"><a href="July_2007_newsletter.pdf">
<font color="#336666">Click here for the current newsletter.</font></a></font></p>
<p align="center">&nbsp;</p>
<p align="center"><font size="4">Monthly Newsletter by Email</font></p>
<FORM METHOD="POST" ACTION="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" u-file="fpweb:///_private/newsletter.htm" s-format="HTML/DL" b-label-fields="TRUE" S-Email-Address="info@holdingfordhelpinghands.org" S-Email-Format="TEXT/PRE" --><P align="center">
&nbsp;</P>
<BLOCKQUOTE>
<TABLE>
<TR>
<TD ALIGN="right">
<p align="center">
<EM><font size="4" face="Times New Roman">Name</font></EM></TD>
<TD>
<p align="center"><font face="Times New Roman" size="4"><i>
<INPUT TYPE=TEXT NAME="Contact_FullName" SIZE=35> </i></font>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<p align="center">
<EM><font size="4" face="Times New Roman">E-mail</font></EM></TD>
<TD>
<p align="center"><font face="Times New Roman" size="4"><i>
<INPUT TYPE=TEXT NAME="Contact_Email" SIZE=25> </i></font>
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
<p align="center"><font face="Times New Roman" size="4"><i>
<INPUT TYPE=SUBMIT VALUE="Submit Form">
<INPUT TYPE=RESET VALUE="Reset Form"> </i></font></p>
</FORM>
<p align="center"><font size="4">Monthly Newsletter by Regular Mail</font></p>
<P align="center">
&nbsp;</P>
<FORM METHOD="POST" ACTION="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" u-file="fpweb:///_private/newsletter.htm" s-format="HTML/DL" b-label-fields="TRUE" S-Email-Address="info@holdingfordhelpinghands.org" S-Email-Format="TEXT/PRE" --><BLOCKQUOTE>
<TABLE>
<TR>
<TD ALIGN="right">
<p align="center">
<EM>Name</EM></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_FullName" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<p align="center">
<EM>Title</EM></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_Title" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<p align="center">
<EM>Street Address</EM></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_StreetAddress" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<p align="center">
<EM>Address (cont.)</EM></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_Address2" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<p align="center">
<EM>City</EM></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_City" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<p align="center">
<EM>State/Province</EM></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_State" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<p align="center">
<EM>Zip/Postal Code</EM></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_ZipCode" SIZE=12 MAXLENGTH=12>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<p align="center">
<EM>Country</EM></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_Country" SIZE=25>
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
<p align="center">
<INPUT TYPE=SUBMIT VALUE="Submit Form">
<INPUT TYPE=RESET VALUE="Reset Form"> </p>
</FORM>
<HR>
</body>
</html>

Thank you for taking a look!!,
geek2009
 

lambada

New Member
Messages
2,444
Reaction score
0
Points
0
If you want it to e-mail you then you can either
use in the form action field have mailto:you@e-mail.com
NOT recommended

Or

You can use some PHP to use the mail() function - http://www.php.net/mail

EDIT:
I'm not sure how well these methods work with FrontPage as I'm unfamiliar with it.
 
Last edited:

Zenax

Active Member
Messages
1,377
Reaction score
4
Points
38
First off, you should try and sort out the code and make it neater. Use this:

Code:
<?php
include ('Tops of pages.htm');
?>

<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<!-- Style has been written inline to make the code a lot shorter -->
<style>
body {
background-properties: fixed;
background-image: Background%20color.gif;
font-family: Times New Roman;
color: #336666;
font-size: 5;
}

a:link, a:visited, a:active {
color: #336666;
text-decoration: none;
}

a:hover {
color: #000;
}
</style>

<title>Newsletter</title>

</head>

<body>
<br />
<div align="center">
<i><strong>Newsletter</strong></i>
<p>

<font size="4" color="#000">

Please help us try to cut down our costs! <br />
You can do this by filling out the form below.<br />
By filling out this form with your email address, you are agreeing to <br />
receive the monthly newsletter by email instead of standard mail.<br />
An additional form is below to sign up for the <br />
monthly newsletter by standard mail.<br />

</font>

<font size="4">
<a href="July_2007_newsletter.pdf"> 
Click here for the current newsletter.</a> <br />
<br />
<br />
<strong>Monthly Newsletter by Email</strong><br />
<br />


<FORM METHOD="POST" ACTION="month_letter_email.php">

<TABLE>
<TR>
<TD ALIGN="right">
<p align="center"><strong>
<EM><font size="4" face="Times New Roman">Name</font></EM></strong></TD>
<TD>
<p align="center"><font face="Times New Roman" size="4"><i>
<INPUT TYPE=TEXT NAME="Contact_FullName" SIZE=35> </i></font>
</TD>
</TR>
<TR>
<TD ALIGN="right">

  <strong><EM><font size="4" face="Times New Roman">E-mail</font></EM></strong></TD>
<TD>

<INPUT TYPE=TEXT NAME="Contact_Email" SIZE=25> 

</TD>
</TR>
</TABLE>

<i>
<INPUT TYPE=SUBMIT VALUE="Submit Form"> 
<INPUT TYPE=RESET VALUE="Reset Form"> </i>
</FORM>


<strong>Monthly Newsletter by Regular Mail</strong><br />
<br />

<FORM METHOD="POST" ACTION="month_letter_reg_mail.php">

<TABLE>
<TR>
<TD ALIGN="right">
<strong>
<EM>Name</EM></strong></TD>
<TD>
<p align="center">
<INPUT TYPE=TEXT NAME="Contact_FullName" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">

  <strong><EM>Title</EM></strong></TD>
<TD>

<INPUT TYPE=TEXT NAME="Contact_Title" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">

  <strong><EM>Street Address</EM></strong></TD>
<TD>

<INPUT TYPE=TEXT NAME="Contact_StreetAddress" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">

  <strong><EM>Address (cont.)</EM></strong></TD>
<TD>

<INPUT TYPE=TEXT NAME="Contact_Address2" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">

  <strong><EM>City</EM></strong></TD>
<TD>

<INPUT TYPE=TEXT NAME="Contact_City" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">

  <strong><EM>State/Province</EM></strong></TD>
<TD>

<INPUT TYPE=TEXT NAME="Contact_State" SIZE=35>
</TD>
</TR>
<TR>
<TD ALIGN="right">

  <strong><EM>Zip/Postal Code</EM></strong></TD>
<TD>

<INPUT TYPE=TEXT NAME="Contact_ZipCode" SIZE=12 MAXLENGTH=12>
</TD>
</TR>
<TR>
<TD ALIGN="right">
<strong>
<EM>Country</EM></strong></TD>
<TD>

<INPUT TYPE=TEXT NAME="Contact_Country" SIZE=25>
</TD>
</TR>
</TABLE>

<INPUT TYPE=SUBMIT VALUE="Submit Form">
 <INPUT TYPE=RESET VALUE="Reset Form"> 
</FORM>








<HR>

</div>



</body>
</html>







The code re-written here, should in theory provide exactly the same page but, the code will be a lot more neater.

The code for the mail forms should be contained within two different PHP files.

Note: The names of these files are contained within the script itself. just look for the action part of the form start.

In order to get the forms to work, you simply have to look for different tutorials on the internet.

There are plenty of them out there.

One tutorial website to choose is:
http://tutorialized.com

Hope this helps you out!

Regards,
Zenax

P.S If you have any problems do not hesitate to contact me!
 
Last edited:
Top