http://www.yesky.com/20000329/42524.shtml
解决方案 »
- Incorrect integer value: '男' for column 'phonenumber' at row 1
- 有没有朋友有hmvc的示例程序?
- 熟悉smarty类的前辈来帮我看看这个问题
- 【求助】一个查询的代码
- 老板说:为了管理上的方便,决定把5000000个htm文件放在根目录下,这样会不会影响访问速度呀?
- asp中显示10条数据的代码在php中该如何写
- php 写的验证码 ,帮忙看看有什么毛病?
- wrong datatype for second argument是什么意思?
- 为什么Post出错?!!!
- 请问微擎码上点餐系统后台我在哪里更改货币符号和货币单位?
- php4.3.0升级到 4.3.1问题,哪位朋友指点一下!谢谢
- 在PHP中使用<script language="JavaScript1.2">的问题。。
如第一个页面tj.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<form name="form1" method="post" action="ac.php">
<table align="center" cellspacing="2" cellpadding="2" border="0">
<tr>
<td>First</td>
<td><input type="text" name="f" ></td>
</tr>
<tr>
<td>Second</td>
<td><input type="text" name="s" value="This is the second textfield"></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="提交"></td>
<td><input type="reset"></td>
</tr>
</table>
</form>
</body>
</html>第二个页面就是按下submit后的结果页面 ac.php
……
<?php
echo $HTTP_POST_VARS['f'];
echo '<br>';
echo $_POST['s'];
echo '<br>';
?>
……
<script language="javascript">
function windowopen()
{
document.all.form1.submit;
newwindow=window.open("","target", "height=210, width=240, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")}
</script>在表单的地方可以这么引用
<form name='form1' action='upload.php' onsubmit='windowopen()' target=target>
<td>
<input type=hidden name=path value=$path>
<input type=submit value=上传文件到当前目录>
</td>
</form>