با سلام دوباره ..
من هرچي سعي كردم نتونستم درستش كنم... اين هم كد فرم مورد نظر... لطفا به دادم برسيد..
[code:1]
<html>
<head>
<meta http-equiv='Content-Language' content='fa'>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html' charset='utf-8'>
</head>
<body>
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','a');
pt_register('POST','b');
if($a=="" || $b=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="a: ".$a."
b: ".$b."
";
$message = stripslashes($message);
mail("
[email protected]","Form Submitted at your website",$message,"From: phpFormGenerator");
$link = mysql_connect("localhost","user","");
mysql_select_db("phpformgenerator",$link);
$query="insert into num11 (a,b) values ('".$a."','".$b."')";
mysql_query($query);
$make=fopen("admin/data.dat","a");
$to_put="";
$to_put .= $a."|".$b."
";
fwrite($make,$to_put);
header("Refresh: 0;url=http://someone.com");
}
?>
</body>
</html>[/code:1]