Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Forms

  1. #1
    jrg
    jrg is offline
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Forms

    Im trying to create a forms page that can be emailed in frontpage

    How can I edit the code so the form that is filled out can be sent directly to an email address as a text. front page will only bring up default email but no form is in the attachment is there a way to insert the form into a predetermined email address?????????????????????????

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Welcome...Yes there is...Let's see your code...
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #3
    jrg
    jrg is offline
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <HTML>
    <HEAD>
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <meta http-equiv="Content-Language" content="en-us">
    <TITLE>New Page 1</TITLE>
    </HEAD>
    <BODY bgcolor="#FD8B39">
    <H1>New Page 1</H1>
    <HR>
    <P>
    This is an explanation of the purpose of the form ...</P>
    <FORM METHOD="POST" ACTION="--WEBBOT-SELF--">
    <!--webbot bot="SaveResults" u-file="fpweb:///_private/formrslt.txt" s-format="TEXT/TSV" b-label-fields="TRUE" --><OL>
    <LI>
    <P>
    Please identify and describe yourself:</P>
    <TABLE>
    <TR>
    <TD ALIGN="right">
    <EM>First Name</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_FirstName" SIZE=25>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Last Name</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_LastName" SIZE=25>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Middle Initial</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_MiddleInitial" SIZE=4 MAXLENGTH=1>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Date of Birth</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_DateOfBirth" SIZE=8>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Sex</EM></TD>
    <TD>
    <INPUT TYPE=RADIO NAME="Personal_Sex" VALUE="Male" CHECKED>
    Male <INPUT TYPE=RADIO NAME="Personal_Sex" VALUE="Female">
    Female </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Height</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_Height" SIZE=6 MAXLENGTH=6>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Weight</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_Weight" SIZE=6 MAXLENGTH=6>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Hair Color</EM></TD>
    <TD>
    <SELECT NAME="Personal_HairColor">
    <OPTION SELECTED>Blonde
    <OPTION>Brown
    <OPTION>Black
    <OPTION>Red
    <OPTION>Gray
    <OPTION>White
    </SELECT>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Eye Color</EM></TD>
    <TD>
    <SELECT NAME="Personal_EyeColor">
    <OPTION SELECTED>Blue
    <OPTION>Brown
    <OPTION>Black
    <OPTION>Green
    <OPTION>Gray
    <OPTION>Violet
    </SELECT>
    </TD>
    </TR>
    </TABLE>
    </OL>
    <INPUT TYPE=SUBMIT VALUE="Submit Form">
    <INPUT TYPE=RESET VALUE="Reset Form">
    </FORM>
    <HR>
    <H5>
    Author information goes here.<br>Copyright 1999 [OrganizationName]. All rights reserved. <BR>
    Revised: <!--WEBBOT BOT=TimeStamp
    S-Type="EDITED"
    S-Format="%m/%d/%y"
    --></H5>
    </BODY>
    </HTML>

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Well, the preferred way is thru a cgi/php/asp serverside script. However, a low-tek way would be to just put mailto: in the form's action like so.

    <HTML>
    <HEAD>
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <meta http-equiv="Content-Language" content="en-us">
    <TITLE>New Page 1</TITLE>
    </HEAD>
    <BODY bgcolor="#FD8B39">
    <H1>New Page 1</H1>
    <HR>
    <P>
    This is an explanation of the purpose of the form ...</P>
    <FORM METHOD="POST" ACTION="mailto:me@myaddress.com?subject=MyForm">
    <P>
    Please identify and describe yourself:</P>
    <TABLE>
    <TR>
    <TD ALIGN="right">
    <EM>First Name</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_FirstName" SIZE=25>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Last Name</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_LastName" SIZE=25>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Middle Initial</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_MiddleInitial" SIZE=4 MAXLENGTH=1>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Date of Birth</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_DateOfBirth" SIZE=8>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Sex</EM></TD>
    <TD>
    <INPUT TYPE=RADIO NAME="Personal_Sex" VALUE="Male" CHECKED>
    Male <INPUT TYPE=RADIO NAME="Personal_Sex" VALUE="Female">
    Female </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Height</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_Height" SIZE=6 MAXLENGTH=6>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Weight</EM></TD>
    <TD>
    <INPUT TYPE=TEXT NAME="Personal_Weight" SIZE=6 MAXLENGTH=6>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Hair Color</EM></TD>
    <TD>
    <SELECT NAME="Personal_HairColor">
    <OPTION SELECTED>Blonde
    <OPTION>Brown
    <OPTION>Black
    <OPTION>Red
    <OPTION>Gray
    <OPTION>White
    </SELECT>
    </TD>
    </TR>
    <TR>
    <TD ALIGN="right">
    <EM>Eye Color</EM></TD>
    <TD>
    <SELECT NAME="Personal_EyeColor">
    <OPTION SELECTED>Blue
    <OPTION>Brown
    <OPTION>Black
    <OPTION>Green
    <OPTION>Gray
    <OPTION>Violet
    </SELECT>
    </TD>
    </TR>
    </TABLE>
    <INPUT TYPE=SUBMIT VALUE="Send">
    </FORM>
    <INPUT TYPE=button VALUE="Continue after sending" onclick="window.location='http://yahoo.com';">
    <HR>
    <H5>
    Author information goes here.<br>Copyright 1999 [OrganizationName]. All rights reserved. <BR>
    Revised: <!--WEBBOT BOT=TimeStamp
    S-Type="EDITED"
    S-Format="%m/%d/%y"
    --></H5>
    </BODY>
    </HTML>
    Last edited by zoobie; 01-22-2004 at 08:05 AM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #5
    jrg
    jrg is offline
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thanx

    Thats as far as i got it doesnt put the form results in the mail
    <INPUT TYPE=SUBMIT VALUE="Send">??



    <INPUT TYPE=SUBMITDATA VALUE="Send">this doesnt send the results either

  • #6
    jrg
    jrg is offline
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lets try again

    Ive gotten the default mail client to open with suject but how do i get the contents of the form included in the mail Do I need to Include values for each selected form catagory

    <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="urn:schemas-microsoft-comfficeffice" xmlns="http://www.w3.org/TR/REC-html40">

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

    <body bgcolor="#FFCC00">
    <table border="0" cellpadding="0" cellspacing="0" width="1233">
    <tr>
    <td width="205" align="center">&nbsp;&nbsp;&nbsp;&nbsp; </td>
    <td width="877" align="center">&nbsp;</td>
    <td align="center" width="151">
    <!--webbot bot="Navigation" s-type="banner" s-rendering="graphics" S-Orientation B-Include-Home B-Include-Up U-Page S-Target --> </td>
    </tr>
    <tr>
    <td width="1233" colspan="3" style="border-bottom-style: none; border-bottom-width: medium"></td>
    </tr>
    </table><table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td style="border-bottom-style: solid; border-bottom-width: 1" align="right">
    <h4><!--webbot bot="Timestamp" S-Type="REGENERATED" S-Format="%m/%d/%y" -->
    </h4>
    </td>
    </tr>
    </table><table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td valign="top" width="75" style="border-left-style:none; border-left-width:medium; border-right-style:solid; border-right-width:1; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium">
    <b>
    <font size="2">
    <!--webbot bot="Navigation" S-Orientation="vertical" S-Rendering="graphics" S-Type="siblings" B-Include-Home="TRUE" B-Include-Up="FALSE" --></font></b>
    <p>&nbsp;</p>
    </td>
    <td valign="top" width="5" style="border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium"></td>
    <td valign="top" height="100%" style="border-right-style:none; border-right-width:medium; border-top-style:none; border-top-width:medium; border-bottom-style:none; border-bottom-width:medium">

    </p>
    <p>Tell me what you think about my web site.&nbsp; I welcome all of your comments
    and suggestions.</p>
    <form method="POST" action="mailto:Cyberpaver@aol.com?subject=Feedback" ;return true;" Submitdata enctype="text/html">
    &nbsp;<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; What kind of comment would you like to send?</strong></p>
    <dl>
    <dd><input type="radio" name="MessageType" value="Complaint">Complaint
    <input type="radio" name="MessageType" value="Problem">Problem
    <input type="radio" checked name="MessageType" value="Suggestion">Suggestion
    <input type="radio" name="MessageType" value="Praise">Praise</dd>
    </dl>
    <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject&nbsp; </strong></p>
    <blockquote>
    <p><input type="text" size="26" maxlength="256" name="Subject"></p>
    </blockquote>
    <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enter your comments in the space provided below:</strong></p>
    <dl>
    <dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
    </dl>
    <p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tell
    us how to get in touch with you:</strong></p>
    <dl>
    <dd>
    <table>
    <tr>
    <td>Name</td>
    <td><input type="text" size="35" maxlength="256" name="UserEmail1"></td>
    </tr>
    <tr>
    <td>E-mail</td>
    <td><input type="text" size="35" maxlength="256" name="UserEmail"></td>
    </tr>
    <tr>
    <td>Tel</td>
    <td><input type="text" size="35" maxlength="256" name="UserTel"></td>
    </tr>
    <tr>
    <td>FAX</td>
    <td><input type="text" size="35" maxlength="256" name="UserFAX"></td>
    </tr>
    </table>
    </dd>
    </dl>
    <dl>
    <dd>
    <input type="checkbox" name="ContactRequested" value="ContactRequested">
    Please contact me as soon as possible regarding this matter.</dd>
    </dl>
    <p><input type="submit" value="Submit Comments">
    <input type="reset" value="Clear Form"></p>
    </form>
    </td>
    </tr>
    </table>
    <p align="center"><small>
    <!--webbot bot="Navigation" S-Orientation="horizontal" S-Rendering="html" S-Bar="Bars" S-Btn-Nml="&lt;A HREF=&quot;#URL#&quot; TARGET=&quot;#TARGET#&quot; STYLE=&quot;text-decoration: none;&quot;&gt;#LABEL#&lt;/A&gt;" S-Btn-Sel="#LABEL#" S-Btn-Sep="&amp;nbsp;|&amp;nbsp;" S-Type="siblings" B-Include-Home="TRUE" B-Include-Up="FALSE" -->
    </small></p>
    <p><i><small>This site was last updated
    <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%y" --> </small></i>
    </p>

    </body>

    </html>

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Just save my code as as page.html. I already tested it and it works fine.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •