יש לי בעיה בקוד הזה / איך לשפר אותו? זה נותן לי את השגיאה הבאה:
PHP קוד:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/djgs/domains/djgs.webix.co.il/public_html/gal.php on line 23
זה הקוד שלי :
PHP קוד:
<html dir="rtl">
<head>
<title> äæîðú òéöåá </title>
<style type="text/css">
<style type="text/css">
.links {color: #4d4d4d; font-size: 12px; font-weight:bold;font-family:arial; text-decoration: none; }
.links:Hover {color: #e1e1e1; font-size: 12px; font-weight: bold;font-family:arial; text-decoration: none; }
.text {color: #4d4d4d; font-size: 12px; font-weight: bold;font-family:arial; text-decoration: none; }
.text2 {color: #000000; font-size: 13px; font-weight: bold;font-family:arial; text-decoration: none; }
</style>
</head>
<body bgcolor="#ffffff">
<from action="?gal.php" method="post"><p align="center"><font class="text2">ùîê äîìà:</font>
<input type="text" name="yname" vaule="<?$_POST["yname"]?>" style="width:200px;" class="text"><br>
<br> <font class="text2">äàéîééì ùìê:</font>
<input type="text" name="yemail" vaule="<?$_POST["yemail"]?>" style="width:200px;" class="text">
<br> <br> <font class="text2">á÷ùä ìòéöåá:</font>
<textarea type="text" name="yp" vaule="<?$_POST["yp"]?>" style="width:200px;" class="text"></textarea>
<br><br><input type="submit" name="send_b" vuale="ùìç" class="text2">
</from>
<?php
$to = "djgs@djgs.webix.co.il,djgs@walla.com";
$body = "$_POST['yp']";
$from = "from : my site";
$subject = "éù ìê äåãòä çãùä";
if($_POST['sned_b']==posted) {
if ($_POST['yname'] == "" || $_POST['yemail']=="" || $_POST['yp']=="" ) {
echo "éù ôøèéí ùìà îìàå";
} else {
mail($to,$subject,$body,$from) {
eco "äîëúá ðùìç áäöìçä";
}
?>