我如何执行PHP程序 [英] How do I execute a PHP program

查看:57
本文介绍了我如何执行PHP程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了AppServ 8.6我无法让程序运行。我确信我有所有的括号等等,但它所做的只是回流放入其中的代码。我错过了什么?执行Javascript程序后,该程序应该从post方法发布...



I just installed AppServ 8.6 I cannot get the program to run. I am certain I have all the brackets, etc. but all it does is regurgitates the code put into it. What am I missing? This program should post upon itself from the post method after executing a Javascript Program "..."

<?php
	$mo = filter_input(INPUT_POST, "mo");
	$dy = filter_input(INPUT_POST, "dy");
	$yr = filter_input(INPUT_POST, "yr");
	$hr = filter_input(INPUT_POST, "hr");
	$mn = filter_input(INPUT_POST, "mn");
	$sc = filter_input(INPUT_POST, "sc");
		
	session_start();
		$_SESSION['mo'] = $mo;
		$_SESSION['dy'] = $dy;
		$_SESSION['yr'] = $yr;
		$_SESSION['hr'] = $hr;
		$_SESSION['mn'] = $mn;
		$_SESSION['sc'] = $sc;
		$_SESSION['count'] = $count;
	session_write_close();	
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

   "http://www.w3.org/TR/html4/loose.dtd">
<html lang="EN" dir="ltr" xmin="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/xml; charset=utf-8" />
    <title>Title.php</title>
     ...
</head>
<body>
     <form id="myform" method="Post" action="Title.php">
         <center><table><tr>
             <td align="center"><input type="text" name="mo" value="<?php echo $_SESSION['mo']; ?>" size="4"/></td>
             <td align="center"><input type="text" name="dy" value="<?php echo $_SESSION['dy']; ?>" size="4"/></td>
             <td align="center"><input type="text" name="yr" value="<?php echo $_SESSION['yr']; ?>" size="4"/></td>
             <td align="center"><input type="text" name="hr" value="<?php echo $_SESSION['hr']; ?>" size="4"/></td>
             <td align="center"><input type="text" name="mn" value="<?php echo $_SESSION['mn']; ?>" size="4"/></td>
             <td align="center"><input type="text" name="sc" value="<?php echo $_SESSION['sc']; ?>" size="4"/></td>
          </tr</table></center>
    </form>
</body>
</html>





我的尝试:



我已经确定没有额外的括号,关闭引号等。



What I have tried:

I have made certain there are no extra brackets, close quotes, etc.

推荐答案

mo = filter_input(INPUT_POST, mo);
mo = filter_input(INPUT_POST, "mo");


dy = filter_input(INPUT_POST, dy);
dy = filter_input(INPUT_POST, "dy");


yr = filter_input(INPUT_POST, yr);
yr = filter_input(INPUT_POST, "yr");


这篇关于我如何执行PHP程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆