<?php $_SESSION['token'] = ''; ?> <?php for($i=0;$i<5;$i++) { $_SESSION['token'] .= $liczba; $img .= '<img src="'.$liczba.'.gif" />'; } ?> <?php if ($_POST['bt'] == "submit") { if (($_POST['email'] != "") AND ($_POST['tytul'] != "") AND ($_POST['tresc'] != "") AND ($_POST['cod'] == $_SESSION['token'])) { $send = mail("contact@contact.com",$_POST['tytul'],$_POST['tresc'],"From: gallery webside <".$_POST['email'].">"); if ($send) else $message = "<font size='2px' color='ff4500' face='arial'> Server error, message did not sent. Please try again.</font>"; } else $message = "<font size='2px' color='ff4500' face='arial'>All fields required, please check and try again.</font>"; } ?>
<head> <meta name="generator" content="Bluefish 2.0.0" > <meta name="author" content="" > <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="Robots" content="noindex"> <link rel="Shortcut icon" href="../graph/icon.png"> <style type="text/css"> <!-- td { font-size: 11px; color: #ff7d4d; font-family: arial; } span { font-size: 8px; color: #ff7d4d; font-family: arial; } --> </style> </head> <body> <table align="center" border="0"> <td colspan="1" rowspan="3" valign="top"> <form action="" method="post"> </form> </td> </tr> <tr> </tr> <tr> </tr> </body>
Wszystko to w jednym pliku "email.php". Podejrzewam, że coś jest nie tak z tą częścią: ($_POST['cod'] == $_SESSION['token']) ale za cholerę nie wiem co

Z góry dziękuję;