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
Expand|Select|Wrap|Line Numbers
- <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>
Expand|Select|Wrap|Line Numbers
- <?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>");
- }
- ?>
Expand|Select|Wrap|Line Numbers
- <html>
- <head>
- <title>?? ?????? ?????? - ???? ????? ?????</title>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
- <meta http-equiv="pragma" content="no-cache"/>
- <meta http-equiv="cache-Control" content="no-cache"/>
- <meta name="description" content="?? ?????? ?????? - ????? ????? ??????"/>
- <meta name="keywords" content="?? ?????? ??????, ????? ??????, ????? ??????, ?????"/>
- <link rel="stylesheet" rev="stylesheet" href="http://www.nett.co.il/styles/styles.css" type="text/css" media="screen" charset="utf-8" />
- </head>
- <body topmargin=0 leftmargin=0 margingwidth=0 marginheight=0>
- <center>
- <table width="743" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right">
- <a href="http://www.nett.co.il/index.html"><img src="http://www.nett.co.il/pc_support.gif" border="0" alt="????? ????? ??????" /></a><br />
- </td>
- </tr>
- </table>
- <table style="background: url(http://www.nett.co.il/top.gif) " width="743" height="47" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td width="480" valign="top" height="47" align="right">
- <h1>???? ????? ?????</h1>
- </td>
- <td width="230" height="47" align="right">
- </td>
- </tr>
- </table>
- <table style="background: url(http://www.nett.co.il/middle.gif) " width="743" height="500" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td width="538" valign="top">
- <table width="100%" cellpading="0" cellspacing="10" border="0">
- <tr>
- <td width="130" valign="top" align="center">
- <img src="http://www.nett.co.il/report.gif" height="125" width="118" border="0" /><br />
- </td>
- <td align="right" dir="rtl" valign="top">
- <p> ??? ?? ?? ?????? ????? ????????, ??? "???" ?????? ???? ????? </p>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="right">
- <table id="before" width="95%" cellpadding="0" cellspacing="6" border="0">
- <tr>
- <td align="right">
- <font face="arial" size="2" color="black">
- <strong><u><center>???? ????? ???</center></u></strong>
- <form action="../new%20form/mail.php" method="post">
- <p dir="rtl">????? ?????? ??? :<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="??? ????">
- </p>
- </form>
- </font>
- <p> </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- <td width="1" valign="top">
- <img src="http://www.nett.co.il/sep_line.gif" width="1" height="480" style="margin: 0px; margin-top: -1px;" /><br />
- </td>
- <td width="204" valign="top" align="center">
- <table width="190" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right">
- <table width="190" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right">
- <a href="http://www.nett.co.il/index.html" class="menu">???? ????</a><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="1">
- <img src="http://www.nett.co.il/sep_ver.gif" width="187" height="1" border="0" alt="????? ??????" /><br>
- </td>
- </tr>
- <tr>
- <td align="right">
- <table width="190" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right" class"menu">
- <a href="http://www.nett.co.il/services/index.html" class="menu">???????</a><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="1">
- <img src="http://www.nett.co.il/sep_ver.gif" width="187" height="1" border="0" alt="????? ??????" /><br>
- </td>
- </tr>
- <tr>
- <td align="right">
- <table width="190" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right" class"menu">
- <a href="http://www.nett.co.il/software/index.html" class="menu">?????? ??????</a><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="1">
- <img src="http://www.nett.co.il/sep_ver.gif" width="187" height="1" border="0" alt="????? ??????" /><br>
- </td>
- </tr>
- <tr>
- <td align="right">
- <table width="190" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right" class"menu">
- <a href="http://www.nett.co.il/computers/index.html" class="menu">????? ??????</a><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="1">
- <img src="http://www.nett.co.il/sep_ver.gif" width="187" height="1" border="0" alt="????? ??????" /><br>
- </td>
- </tr>
- <tr>
- <td align="right">
- <table width="190" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right" class"menu">
- <a href="http://www.nett.co.il/report/index.html" class="menu">???? ????? ?????</a><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="1">
- <img src="http://www.nett.co.il/sep_ver.gif" width="187" height="1" border="0" alt="????? ??????" /><br>
- </td>
- </tr>
- <tr>
- <td align="right">
- <table width="190" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right" class"menu">
- <a href="http://www.nett.co.il/about/index.html" class="menu">????? ?????</a><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="1">
- <img src="http://www.nett.co.il/sep_ver.gif" width="187" height="1" border="0" alt="????? ??????" /><br>
- </td>
- </tr>
- <tr>
- <td align="right">
- <table width="190" cellpading="0" cellspacing="0" border="0">
- <tr>
- <td align="right" class"menu">
- <a href="http://www.nett.co.il/contact/index.html" class="menu">??? ???</a><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <table style="background: url(http://www.nett.co.il/bottom/index.html.gif); height: 29px; " width="743" cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td style="width: 700px;" align="right" valign="middle" class="bottom">
- <a href="http://www.nett.co.il/privacy.html" class="bottom">????? ??????</a> | <a href="http://www.nett.co.il/terms.html" class="bottom">???? ?????</a> | <a href="http://www.nett.co.il/about/index.html" class="bottom">????? ?????</a> | <a href="http://www.nett.co.il/contact/index.html" class="bottom">??? ???</a> | Copyright © 1999 - 2008 ?? ?????? ?????? <br />
- </td>
- </tr>
- </table>
- <table height="10" cellpading="0" cellspacing="0" border="0"><tr><td align="right"></td></tr></table>
- </center>
- </body>
- </html>
http://nett.co.il/contact/feedback.html - The working script
http://nett.co.il/contact/index.html - My site
Thanks ahead,
Moses