zoukankan
html css js c++ java
html5表单与PHP交互
1、示例代码
前端:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>html5表单与PHP交互</title>
</head>
<body>
<form action="http://localhost/jh.php" method="post" target="_blank"><!--需要资源定位可用get方式提交单get不安全性也是有的,并且网址长-->
<p>用户名:<input type="text" name="user" autofocus="autofocus"/></p>
<p>密 码:<input type="password" name="password"/></p>
<input type="submit"/>
</form>
</body>
</html>
后端:
<?php
echo "用户名:".$_POST['user']."<br/>密 码:".$_POST['password'];
?>
2、实例效果
查看全文
相关阅读:
SSH免密码登陆备忘
WeiBo官网oauth2开发文档理解
TOP
使用定位,逆地理编码,经纬度《=转=》地址信息、逆地理编码,地址《=转=》经纬度,贼方便!!!!
计算机病毒分类之感染目标
预处理
指针与引用
printf问题参数顺序
神奇的求平均数
C和C++的关系
原文地址:https://www.cnblogs.com/qikeyishu/p/7396385.html
最新文章
DataTable合并列
点击链接让页面在iFrame切换里显示
Hibernate Class Is Not Mapped
Js 逻辑运算&&和||
JS中style属性
Dataview 与 DataRowView
字符串中英文截取.
提高页面加载速度的若干方式【转】
winfrom onpaint方法
HttpContext.Current.Cache 和 HttpRuntime.Cache 对象区别
热门文章
javaScript关闭浏览器 (不弹出提示框)
JS中Null与Undefined的区别
IE6的window.location.href问题
Lucene的分析器理解
screen(nohup you script &)
fg&bg&jobs&ctrl+z
history
oauth与oauth2
Mac杂记
mv/cp/scp/rsync中路径问题
Copyright © 2011-2022 走看看