登录  /  注册
php提交按钮点击后没反应,各位高手帮帮忙
阿神
阿神 2016-11-09 16:46:58
[PHP讨论组]

这是源代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="283" height="85" border="1" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="test2.php">
<tr>
<td width="114" height="30" align="center" class="style1">管理员:</td>
<td width="163" height="30" align="center"><input name="username" type="text" id="username4" size="20"></td>
</tr>
<tr>
<td> </td>
<td height="25">  <input type="submit" name="Submit" value="提交"></td>
</tr>
</form>
</table>
<?php
if($Submit=="提交"){
$username=$_POST[username];
}
?>
<table width="284" boder="1" cellpadding="0" cellspacing="0">
<tr>
<td height="25" align="center" class="style1"><?php echo"管理员:$username"?></td>
</tr>
</body>
</html>


阿神
阿神

闭关修行中......

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号