人们
我想知道如何在不显示操作属性的情况下提交表单。像这样
<form action="someact.php" method="post">
...
</form>
Run Code Online (Sandbox Code Playgroud)
有些人建议使用$_PHP['SELF'],但我希望使用另一个 php 文件来处理我的表单,例如将 UI 部分和流程部分分开,以便任何人都看不到我的流程文件?
我想要这样
<form method="post">
...
</form>
Run Code Online (Sandbox Code Playgroud)
但它处理成我想要的文件。
请帮助 ?
简单的问题.
<input type="text" value="Some text" name="thisname" id="thisid" />
Run Code Online (Sandbox Code Playgroud)
如何获取正在使用的id或名称的名称,而不是值.很明显,这个文本框的值是"Some text".但我想要的是现在使用的id和名称的名称.
更清楚......我想要"thisid"或"thisname".
看我的代码
<!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=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
$(document).ready(function() {
$("p").parent(".selected").css("background", "#FF8877");
});
function add(name) {
$("#" + name).parent().clone().insertAfter($("#" + name).parent());
}
</script>
</head>
<body>
<div><p>Hello</p></div>
<div class="selected"><p name="name" id="name" onclick="add(this.name)">Hello Again</p></div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
任何的想法 ?