首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 培训 数据库 书店 程序员
中国软件网
欢迎您:游客 | 登录 注册 帮助
  • HTTP Error 405
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    发表于:2007-12-12 08:17:26 楼主
    Hi,
    I tried to send a form via email, but i got the error message:
    "HTTP Error 405
    405 Method Not Allowed

    The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.

    Please contact the server's administrator if this problem persists."


    Is there anyone know how to solve this problem? Followed is the code for the form.

    <form method="post" enctype="multipart/form-data" name="form1" action="formmail.cfm">
    <table border="0" cellpadding="0" cellspacing="0" width="80%" >
    <tr>
    <td width="26%" class="style39" align="left">Name </td>
    <td width="54%" align="left"> <input name="Name" type="text" value="" size="60" />
    </td>
    <td width="20%"> </td>
    </tr>

    <tr>
    <td width="26%" class="style39" align="left">Company Name </td>
    <td width="54%" align="left"> <input name="CompanyName" type="text" value="" size="60" /> </td>
    <td width="20%"> </td>
    </tr>

    <tr>
    <td width="26%" class="style39" align="left">Email </td>
    <td width="54%" align="left"> <input name="Email" type="text" value="" size="60" /> </td>
    <td width="20%"> </td>
    </tr>


    <tr>
    <td width="26%" class="style39" align="left">Phone </td>
    <td width="54%" align="left"> <input name="Phone" type="text" value="" size="60" /> </td>
    <td width="20%"> </td>
    </tr>

    <tr>
    <td width="26%" class="style39" align="left">Enquiry </td>
    <td width="54%" align="left"> <textarea name="Message" cols="60" rows="4"> </textarea>
      </td>
      <td width="20%" align="left"> <input type="submit" value="Submit"> <br> <br /> <input type="reset" value="Reset"> </td>
    </table>
    </form>


    This is the code in formmail.cfm:

    <CFMAIL TO = "jackie@people1st.com.au"
    FROM= #Form.Email#
    SUBJECT= "People1st Enquiry!">
    New Enquiry:

    Name: #Form.Name#

    CompanyName: #Form.CompanyName#

    Email: #Form.Email#

    Phone: #Form.Phone#

    Message: #Form.Message#

    </CFMAIL>


    Many thanks!
    Lu
    20  修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    发表于:2007-12-12 13:29:321楼 得分:0
    <CFMAIL TO="jackie@people1st.com.au" 
            FROM="#Form.Email#"
            SUBJECT="People1st  Enquiry!"> 
    New  Enquiry:
    Name:  #Form.Name# 
    CompanyName:  #Form.CompanyName# 
    Email:  #Form.Email# 
    Phone:  #Form.Phone# 
    Message:  #Form.Message# 
    </CFMAIL> 
    修改 删除 举报 引用 回复
    进入用户个人空间
    加为好友
    发送私信
    在线聊天
    发表于:2008-05-01 06:35:002楼 得分:0
    该回复于2008-05-01 06:41:04被版主删除
    修改 删除 举报 引用 回复

    网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
    北京创新乐知广告有限公司 版权所有 京 ICP 证 070598 号
    世纪乐知(北京)网络技术有限公司 提供技术支持
    Copyright © 2000-2008, CSDN.NET, All Rights Reserved