ההודעה הבאה לקוחה מהודעה ישנה של x-ray.
בבקשה:
זהו הקוד לטופס:
קוד:
<html dir="rtl">
<body>
<form method="POST" action="send.php">
<input type="text" name="subject" size="20"></span></p>
<br>
<textarea rows="7" name="message" cols="20"></textarea>
<br>
<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>
וזהו הקוד לקובץ php
קוד:
<?php
mail("user@server.com",$subject,$message);
?>
<html><body>
<meta http-equiv="refresh" content="5;URL=index.html">
<CENTER>
<font color=blue> <b>
<BIG><BIG>
<BR><BR>
הדואר נשלח
אתה תועבר לעמוד הראשי בעוד 5 שניות
<BR>
<BR><BR>
<BIG><BIG>
</BIG></BIG></BIG></BIG>
</b>
</font>
<meta http-equiv="refresh" content="5;URL=index.html">
</body>
</html
>
כמובן שבמקום ה
user@server.com עלייך להכניס את המייל שלך