www.webdeveloper.com
Results 1 to 4 of 4

Thread: Help with Mail_Handler

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    2

    Angry Help with Mail_Handler

    I do not understand why my form I have on my web site is not working correctly. I am using angelfire.com as my web host and Microsoft XP Frontpage to build the site.
    Every time I try to summit the form I get this error
    "Oops! We can only accept forms that
    come from a Angelfire URL. Sorry!"
    I have tried to learn CIG/Perl by reading up on it through web sites, but with no help!
    I can read what I have submitted in my _private folder in my cgi_bin but I would like to have them sent to my email address. Do I need a new folder in my cgi_bin with the script to handle this process... ..Please someone help me understand what I am doing wrong. I have added my web address and the HTLM for that page.


    Thank,
    Malissa

    http://www.angelfire.com/fl5/lmwoode...s/feedback.htm


    <html>

    <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">
    <meta name="Microsoft Theme" content="canvas 011, default">
    </head>

    <body><table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td width="150" colspan="2" align="center">&nbsp;</td>
    <td align="center">
    <!--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="100%" 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">
    <!--webbot bot="Navigation" S-Orientation="vertical" S-Rendering="graphics" S-Type="siblings" B-Include-Home="TRUE" B-Include-Up="FALSE" -->
    <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>
    <!--webbot bot="PurpleText" preview="Feedback Form - Customize the form below to collect the information you need. By default, the form data is saved to a text file on the web server using the FrontPage Save Results component. Edit the Form Properties to change this behavior." -->
    </p>
    <p>Tell me what you think about my web site.&nbsp; I welcome all of your comments
    and suggestions.</p>
    <form action="/cgi-bin/script_library/form_handler_mail" method="post"
    name="Mail">
    <INPUT TYPE="hidden" NAME="email_to"VALUE="papaverrhoeas1@aol.com">
    <INPUT TYPE="hidden" NAME="end_display"
    VALUE="http://http://www.angelfire.com/fl5/lmwoodentreasures/index.htm">
    <p><strong>What kind of comment would you like to send?</strong></p>
    <dl>
    <dd>
    <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>Subject&nbsp; </strong></p>
    <blockquote>
    <p><input type="text" size="26" maxlength="256" name="Subject"></p>
    </blockquote>
    <p><strong>Enter your comments in the space provided below:</strong></p>
    <dl>
    <dd><textarea name="Comments" rows="5" cols="42"></textarea></dd>
    </dl>
    <p><strong>Tell me 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="Username"></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>
    <INPUT TYPE="hidden" NAME="required" VALUE="Username,UserEmail">
    <INPUT TYPE="hidden" NAME="order" VALUE="MessageType,Subject,Comments,Username,UserEmail,UserTel,UserFAX,ContactRequested">
    <INPUT TYPE="hidden" NAME="savefile" VALUE="visitors.txt">
    <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 align="center"><i><small>This site was last updated
    <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%y" --> </small></i>
    </p>

    <p align="center">&nbsp;</p>

    </body>

    </html>

  2. #2
    Join Date
    Oct 2005
    Posts
    481
    Hi,

    First of all ... are you sure you're allowed to run scripts from your angelfire account? The following is from the angelfire site:

    "CGI/PERL Support
    If you subscribe to Angelfire Neon, Argon, Xenon, or Krypton, you can upload, write, and edit your own CGI/Perl scripts!"

    In other words, if you have the free hosting, cgi support is not included.

    Aside from that ...

    When I go to the url for your web site, I see in the source that you have an extra opening form tag (<form>). You need to remove that and then try again. There could be other things as well, but it looks like the form is sending the data via "GET" rather than "POST" which is what you specified in the second form tag.

    Also, you don't have a file extension for the script name like form_handler_mail.pl or form_handler_mail.cgi or .php.

    Check all of these things out.

    kelly

  3. #3
    Join Date
    Oct 2005
    Posts
    2

    It's still not working

    Thank for your response Kelly.

    I am having such a problem with the CGI script. I am trying to read up on it but not sure on how to make it work...do you know of any good web site that are for beginners...LOL
    I guess my problem lies in the fact I am not sure how to write the script for the CGI

    Yes I pay for my angelfire site, and they have been no help when it come to asking questions...You would think that they would be more willing to help with this problem, but I guess not.

    Again I thank you for the help..


    Malissa

  4. #4
    Join Date
    Oct 2005
    Posts
    481
    Code:
    <INPUT TYPE="hidden" NAME="email_to"VALUE="papaverrhoeas1@aol.com">
    You need a space between NAME="email_to" and VALUE="papaverrhoeas1@aol.com">

    kelly
    Last edited by kelly23; 11-02-2005 at 09:08 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles