try this (more...)
code like this
type error in the post above: name="submit" should be value="submit"
or, u can use code like this
-------------------------------
<html>
<head>
<script language="javascript">
function func_submit(myform){
myform.target="_self";
myform.action="detail.asp";
myform.submit();
}
</script>
</head>
<body>
<form name="form1" method="post">
<input name="name" type=text></input>
<input type="button" value="click me" onclick="func_submit(document.form1)">
</form>
</body>
</html>
or, u can use code like this
-------------------------------
<html>
<head>
<script language="javascript">
function func_submit(myform){
myform.target="_self";
myform.action="detail.asp";
myform.submit();
}
</script>
</head>
<body>
<form name="form1" method="post">
<input name="name" type=text></input>
<input type="button" value="click me" onclick="func_submit(document.form1)">
</form>
</body>
</html>