带有PHP操作文件的HTML表单. [英] HTML Form with PHP action file.
本文介绍了带有PHP操作文件的HTML表单.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了以下表单和.php代码,如下所示,但是当我单击提交"按钮时,没有任何错误,但是也没有任何输出.如果你们有时间,请帮助我解决这个问题.
注意:我已经使用XAMP在HTML&中托管了我的网页. PHP
表格
I have created the following form and the .php code as follows but when I click the submit button there are not any errors but also there is no any output also. If you guys have the time please help me solve this problem.
Note: I have used the XAMP to host my web pages in both HTML & PHP
The Form
<form id="form1" name="form1" method="post" action="Submit01.php">
<p> </p>
<p> </p>
<div id="apDiv6">
<table width="389" height="100" border="0" align="center">
<tr>
<td width="116">CheckIn Date:</td>
<td width="263"><label>
<input type="text" name="CheckIn" id="CheckIn" />
</label></td>
</tr>
<tr>
<td>CheckOut Date:</td>
<td><label>
<input type="text" name="CheckOut" id="CheckOut" />
</label></td>
</tr>
<tr>
<td><input type="button" value="Submit" name="Submit" id="Submit" /></td>
<td><input type="button" value="Reset" name="Reset" id="Reset" /></td>
</tr>
</table>
</div>
<p></p>
<div id=><p></p><p></p>
<div id="apDiv10">
<table>
</table></div>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</form>
PHP代码-文件名Submit01.php
The PHP code - File Name Submit01.php
<?php echo $_POST["CheckIn"]; ?> <?php echo "<br />"; ?>
<?php echo $_POST["CheckOut"]; ?>
推荐答案
_POST [ " ]; ?> <? php echo " ; ?> <? php echo
_POST["CheckIn"]; ?> <?php echo "<br />"; ?> <?php echo
_POST [" ]; ?>
_POST["CheckOut"]; ?>
我已经解决了自己的问题.谢谢大家!
I had solved the problem my self. Thanks guys!
这篇关于带有PHP操作文件的HTML表单.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文