From: scooti (scooti@stonline.sk)
Date: 24. 04. 2003, 22:11 CEST
Zdravim potrebujem jednu radu! Toto mi vypisal server, ked som sa pokusal poslat mail z mojej stranky: Warning: mail() has been disabled for security reasons in /mnt/host-users/brodeur/kontakt.php on line 92 error Prosiiiiiim o radu ___________________________________________ S pozdravom scooti Zdrojak stranky kontakt.php ========================================= <?php /*==============funkcia VRCH=============*/ function vrchhtml() { echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n <HTML> <HEAD>\n <META NAME=\"description\" CONTENT=\"Prvá slovenská oficiálna stránka brankara New Jersey Devils Martina Brodeura\"> <META NAME=\"keywords\" CONTENT=\"Brodeur, New Jersey Devils, NHL, brankár, Martin Brodeur\"> <TITLE>:::::::::: Martin Brodeur #30 :::::::::: official slovak fan page</TITLE>\n <SCRIPT LANGUAGE=JAVASCRIPT> <!-- function checkform() { var retval retval = true if (document.all[\"mail[odesilatel]\"].value == \"\") { alert(\"Nezadali ste Váš email\"); document.all[\"mail[odesilatel]\"].focus(); retval = false; } return retval; } --> </SCRIPT> </HEAD>\n <BODY BACKGROUND=\"pozadie.jpg\" leftmargin=\"0\" topmargin=\"0\"> "; } /*============funkcia DOLE==============*/ function dolehtml() { echo "\n\n <!-- podpisanie stránky--> <P> </P> <FONT FACE=\"Arial\" SIZE=1 COLOR=\"black\"><P ALIGN=\"center\">C 2003. All rights reserved. Created by </FONT><A HREF=\"index.php?vyber=kontakt\"> <FONT COLOR=\"black\" SIZE=1>scooti</FONT></A></P> </BODY> </HTML>"; } function formular() { $mail[adresa] = "scooti@stonline.sk"; ?> <form action="<?= $PHP_SELF ?>" method="post" onsubmit="return checkform();"> <table border="0" align="center"> <TR> <td WIDTH=80 HEIGHT=40><B>Váš mail:</td> <td> <input type="text" name="mail[odesilatel]"> </td> </tr> <tr> <td WIDTH=80 HEIGHT=40 VALIGN=TOP><B>Predmet</td> <td VALIGN=TOP> <input type="text" name="mail[predmet]"> </td> </tr> <tr VALIGN=TOP> <td VALIGN=TOP HEIGHT=40><B>Text</td> <td VALIGN=TOP> <textarea name="mail[telo]" cols="40" rows="8"></textarea> </td> </tr> <tr> <td colspan="2" align="center" VALIGN=TOP> <input type="submit" name="submit" value=" Odoslať "> <input type="reset" name="reset" value=" RESET "> </td> </tr> </table> </form> <?php } function posli($mail) { $hlavicka = "From: $mail[odesilatel]\r\n"; $hlavicka.= "Reply-To: $mail[odesilatel]\r\n"; $hlavicka.= "X-Mailer: PHP"; mail ("$mail[adresa]", "$mail[predmet]", "$mail[telo]", "$hlavicka") or die ("error"); echo "OK"; } vrchhtml(); if(!isset($submit)) formular(); else posli($mail); dolehtml(); ?>
This archive was generated by hypermail 2.1.6 : 24. 04. 2003, 22:13 CEST