duancaishun4812 2011-11-16 02:13
浏览 39
已采纳

HTML表格PHP帖子不起作用

I'm writing a little website for myself and I'm having trouble with what seems like a simple line of code:

form action="send.php" method="post"

Furthermore, even a simple line like form action="http://www.google.com"> isn't working. Here is my code:

<html>  
    <head>  
        <title>  
            AnonMail!  
        </title>  
    </head>  
    <body style="font-family:'Tahoma';>  
        <form action="send.php" method="post">  
            <label for="from">From:  </label><input type="text" name="from" id="from"></input></br>  
            <label for="to">To:  </label><input type="text" name="to" id="to"></input></br>  
            <label for="subj">Subject:  </label><input type="text" name="subj" id="subj"></input></br>  
            <textarea rows=10 cols=100 name="message"></textarea></br>  
            <input type="submit" value="Send"/>  
        </form>  
    </body>  
</html>
  • 写回答

3条回答 默认 最新

  • dsa5233 2011-11-16 02:21
    关注

    Here's a form that should work:

    <html>
    <body>
    <form action="contact.php" method="post">
    <p><b>Your Name:</b> <input type="text" name="yourname" /><br />
    <b>Subject:</b> <input type="text" name="subject" /><br />
    <b>E-mail:</b> <input type="text" name="email" /><br />
    Website: <input type="text" name="website"></p>   
    <p><input type="submit" value="Send it!"></p>
    </form>
    </body>
    </html>
    

    If you're still having troubles: http://myphpform.com/php-form-not-working.php

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 STM32无法向设备写入固件
  • ¥15 使用ESP8266连接阿里云出现问题
  • ¥15 BP神经网络控制倒立摆
  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并