אשכול: בעיה בקוד PHP
View Single Post
ישן 28-07-07, 11:45   # 4
omercnet
אחראי פורום תחזוק שרתים
 
מיני פרופיל
תאריך הצטרפות: Aug 2006
גיל: 38
הודעות: 722

omercnet לא מחובר  

ציטוט:
נכתב במקור על ידי DJ G.S צפה בהודעה
PHP קוד:
<?php

$sendTo 
"maorshabom@gmail.com"
$sendFrom $_POST['sendFrom'];
$subject $_POST['subject'];
$message '<html> 
<head>
<title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255"></meta>
</title>
</head> 
<body> 
Hello,
My name is '
.$name.' , My phone number is '.$phone.'
I contect with you because
</body>
</html>'

$phone $_POST['phone'];
$name $_POST['name'];
$headers  "MIME-Version: 1.0 \r\n"
$headers .= "Content-type: text/html; charset=windows-1255 \r\n"
$headers .= "From: $sendFrom \r\n"


mail($sendTo$subject$message$headers );
echo 
'ההודעה נשלחה בהצלחה';

?>
בבקשה..
נראה לך שעכשיו הוא הבין מה הוא עשה לא בסדר?
למה פשוט לתת לו קוד מוכן, איך הוא יבין?

sts, אתה מוזמן לקרוא להבין
http://il.php.net/manual/en/language.types.string.php
יש שוני בין " ל ' בכל מני צורות
__________________
Omer Cohen
Information Security Specialist
eBaY Inc