Hi there ,
I have php script that works fine under my server
but I dont know how to put the html code inside my site.
feedback.html
-
<html dir="rtl">
-
<head>
-
<title> ????? ??? </title>
-
</head>
-
<body>
-
<font face="arial" size="2" color="black">
-
<strong><u><center>???? ????? ???</center></u></strong>
-
<form action="mail.php" method="post">
-
????? ?????? ??? :<input type="text" name="sender"><br><br>
-
???? ??????: <input type="text" name="subject"><br><br>
-
??? ?????? : <br><br>
-
<textarea cols="30" rows="10" name="message"></textarea><br><br>
-
<input type="submit" value="???">
-
<input type="reset" value="??? ????">
-
</form>
-
</font>
-
</body>
-
</html>
-
the mail.php
-
<?php
-
$sender= $_POST['sender'];
-
$subject = $_POST['subject'];
-
$message = $_POST['message'];
-
if($sender == '' || $subject == '' || $message =='')
-
{
-
echo("???? ????? ????? ?????");
-
}
-
elseif ($sender == $subject || $sender == $message || $message == $subject)
-
{
-
echo("??? ???????? ????? ???? ???? ???? ???");
-
}
-
else
-
{
-
mail('service@nett.co.il', $subject, $message, "From:".$sender);
-
echo("<h3 align=center><b>?????? ????? ??????</b></h3>");
-
}
-
?>
-
My Html with the CODE of feedback.html inside :
Or simply , How to put the 1st code inside the 3rd one for the 2nd one to work.
http://nett.co.il/contact/feedback.html - The working script
http://nett.co.il/contact/index.html - My site
Thanks ahead,
Moses