patoo87
جمعه 16 تیر 1385, 00:49 صبح
:متفکر:<html>
<head>
<style type="text/css"><!--
body{font-family:courier;font-weight:900;background:#edfedf}
a,a:visited{color:#d5a9d4}
a:hover{color:#000000}
table{font-weight:600}
--></style>
</head>
<body>
<form action="sended.php" method="post">
<table cellspacing=1 border=0 width=300>
<tr>
<td bgcolor="#dfedfe">
TO:<input type="text" name="to" size="37">
</td>
</tr>
<tr>
<td bgcolor="#dfedfe">
SUBJECT:<input type="text" name="subject" size="30">
</td>
<tr>
<td bgcolor="#dfedfe">
Cc:<input type="text" name="cc" size="30">
</td>
</tr>
<tr >
<td bgcolor="#dfedfe" >
message:<input type="submit" name="send" value="send">
</tr>
<tr>
<td bgcolor="#dfedfe" alighn="left">
<textarea name="content" rows="20" cols="70"></textarea>
</td>
</tr>
<tr>
<td bgcolor="#dfedfe">
<input type="submit" name="send" value="send">
</td>
</tr>
</table>
</form>
</body>
</html>
من نمیفهمم ایراد برنامم چیه لطفا کمکم کنید
اینم فایل اکشنشه:
<?php
$to=$_POST['to'];
$subject=$_POST['subject'];
$message=$_POST['content'];
$cc=$_POST['cc'];
$from='maah70@yahoo.com';
echo"to:$to<br>";
echo"subject:$subject<br>";
echo"Cc:$cc<br>";
$headers="FROM:$from\r\ncc:$cc\r\n";
if(mail($to,$subject,$message,$headers))
echo"<b>your mail sended sucssesfully</b>";
else
echo"<b>An error was occured in sending mail<br>your mail has not been sended</b>";
?>
<head>
<style type="text/css"><!--
body{font-family:courier;font-weight:900;background:#edfedf}
a,a:visited{color:#d5a9d4}
a:hover{color:#000000}
table{font-weight:600}
--></style>
</head>
<body>
<form action="sended.php" method="post">
<table cellspacing=1 border=0 width=300>
<tr>
<td bgcolor="#dfedfe">
TO:<input type="text" name="to" size="37">
</td>
</tr>
<tr>
<td bgcolor="#dfedfe">
SUBJECT:<input type="text" name="subject" size="30">
</td>
<tr>
<td bgcolor="#dfedfe">
Cc:<input type="text" name="cc" size="30">
</td>
</tr>
<tr >
<td bgcolor="#dfedfe" >
message:<input type="submit" name="send" value="send">
</tr>
<tr>
<td bgcolor="#dfedfe" alighn="left">
<textarea name="content" rows="20" cols="70"></textarea>
</td>
</tr>
<tr>
<td bgcolor="#dfedfe">
<input type="submit" name="send" value="send">
</td>
</tr>
</table>
</form>
</body>
</html>
من نمیفهمم ایراد برنامم چیه لطفا کمکم کنید
اینم فایل اکشنشه:
<?php
$to=$_POST['to'];
$subject=$_POST['subject'];
$message=$_POST['content'];
$cc=$_POST['cc'];
$from='maah70@yahoo.com';
echo"to:$to<br>";
echo"subject:$subject<br>";
echo"Cc:$cc<br>";
$headers="FROM:$from\r\ncc:$cc\r\n";
if(mail($to,$subject,$message,$headers))
echo"<b>your mail sended sucssesfully</b>";
else
echo"<b>An error was occured in sending mail<br>your mail has not been sended</b>";
?>