<?php
if($_POST['Submit']){
msg("提交表单");
echo "提交表单";
}
?><!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>
<form action="<?=$_SERVER['../PHP_SELF'];?>" method="post" enctype="multipart/form-data" name="form1" id="form1" >
<input type="image" name="img" src="a1262603582.jpg" "/>
</form></body>
</html>这个是代码,请各位大虾指教下
=============
友情提示下楼主:
1、写程序是细活,别太马虎大意了。大小写一定要分清楚
2、想检查的东西一定要清楚是否真有,别判断空气
3、左手GOOGLE,右手手册
if($_SERVER['REQUEST_METHOD'] == "POST")
if($_POST['Submit']){
msg("提交表单");
echo "提交表单";
}
?> <!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>
<form action=" <?=$_SERVER['../PHP_SELF'];?>" method="post" enctype="multipart/form-data" name="form1" id="form1" >
<input type="image" name="img" src="a1262603582.jpg" "/>
</form> </body>
</html>
var str;
function s_value()
{
window.location.href="show.php";
}
</script>
<input type="image" onclick="s_value()" name=img src="a122323233.jpg">