dongmi8980 2016-11-07 00:36
浏览 11

HTML输入按钮不向我的PHP代码发送任何信号

I've been trying to create a code that accepts user's input and then allows the user to either edit, delete or search all his inputs so far. Here's a snippet of my HTML part that has an error:

<td align = "left"><input type="textarea" name="post" placeholder="What are you thinking? (Only one tag allowed)" style="width: 330px; height: 50px;"  value="<?php echo $post;?>" /> </td>
<td align = "center"><input type="text" name="tag" placeholder="Put your tags here!" style="width: 130px; height: 50px;" value="<?php echo $tag;?>" /> </td>   
            </tr>
        </table>
        <table bgcolor="#004A00" align="center" width="650px">
             <tr>
                <td><br /></td>
            </tr>
            <tr>
              <div align = "center">
            <!-- Input For Add Values To Database-->
            <input type="image" src="http://www.swiftpic.org/image.uploads/06-11-2016/original-655b6e1a6e4b4c149b9969ad99e65699.png"" name="insert">

            <!-- Input For Edit Values -->
            <input type="image" src="http://www.swiftpic.org/image.uploads/06-11-2016/original-80a74827d6700e084482680251134c90.png" name="update">

            <!-- Input For Clear Values -->
            <input type="image" src="http://www.swiftpic.org/image.uploads/06-11-2016/original-02f5a241ad8d3f6c043076e2bb0fce7f.png" name="delete">

            <!-- Input For Find Values With The given ID -->
            <input type="image" height="60px" src="http://www.swiftpic.org/image.uploads/06-11-2016/original-a2aafe78a53258d59b7421b3cf266eb2.png" name="search">
            <a href="?orderBy=date"> Date Ascending:</a>
            <a href="?orderBy1=date"> Date Descending:</a>
       </div>    

I used a code similar to this one before, but without using the images/buttons and it works just fine but when I used these buttons, the PHP code is not receiving any input from the user and therefore won't function after I changed the code.

Any idea on why this is happening? Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 mmocr的训练错误,结果全为0
    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀