Home > Backend Development > PHP Tutorial > PHP form表单提交问题

PHP form表单提交问题

WBOY
Release: 2016-06-23 13:41:46
Original
785 people have browsed it

orderform.html如下

<!DOCTYPE HTML><html><head>	<meta http-equiv="content-type" content="text/html" />	<meta name="author" content="blog.anchen8.net" />	<title>Untitled 2</title></head><body><form action="processorder.php" method="post"><table id="table1">    <tr id="tr1">        <td id="td1"> Item</td>        <td id="td2">Quantity</td>    </tr>    <tr id="tr2">        <td id="td3">Tires</td>        <td id="td4"><input type="text" name="tireqty" size="3" maxlength="3" /></td>    </tr>    <tr id="tr3">        <td id="td5">Oil</td>        <td id="td6"><input type="text" name="oilqty" size="3" maxlength="3"/></td>    </tr>    <tr id="tr4">        <td id="td7">        Spark Plus        </td>        <td id="td8" ><input type="text" name="sqarkqty" size="3" maxlength="3" /></td>    </tr>    <tr>        <td id="td9" colspan="2"><input type="submit" value="Submit Order" /></td>    </tr></table></form></body></html>
Copy after login

processorder.php代码如下
<?php     echo '<p>Order Process!</p>';     ?>
Copy after login

现在的问题是,当我填写完表单之后,点击提交,并没有按照预期进入目标页面,反而启动自动下载程序去下载php?求解这是怎么回事?谢谢


回复讨论(解决方案)

大家不要回答了,此人结贴率太低了,鄙视这种人

可能是你的阿帕奇有问题,重装阿帕奇试试

apache的问题吧

大多是php没有正确安装所引起,先确认你的环境能不能执行php

大家不要回答了,此人结贴率太低了,鄙视这种人

我之前就发了5个帖子,除了最后一个帖子没结,为什么说我结贴率低,怎样才算结贴率高?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template