Czy mo¿e o to Ci chodzi³o?
http://tafclan.com/test.php<?php
<input type=\"submit\" name=\"submit\" style=\"background-image: url('submit.gif'); width: 78px; height: 28px; border:0px solid;\" value=\"\"/>
?>
Tam musisz wprowadziæ szeroko¶æ i wysoko¶æ obrazka. Pole value zostaw puste.
Ca³o¶æ:
<?php
if (empty($_POST['submit'])) {
echo "<table border=\"0\"><form method=\"post\" action=\"kontakt.php\"> <tr height=\"50\"><td></td></tr>
<tr><td></td>
<td></td>";
echo "<td><b>Tre¶æ Wiadomo¶ci: </b></td> <td></td>
<td></td>
</tr><tr>
<td></td>";
echo "<td></td><td colspan=\"2\"><textarea name=\"tresc\" style=\"width: 434px; height: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px; overflow:hidden\" wrap=\"virtual\"></textarea>";
</td></tr><tr><td></td>
<td style=\"text-align: right\"><b>Imiê: </b></td><td><input type=\"text\" name=\"imie\" style=\"width: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px\"></td><td style=\"text-align: right\"><input type=\"text\" name=\"email\" style=\"width: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px\"></td><td><b> :Mail</b></td>";
echo "</tr><tr height=\"15\"><td width=\"16\"></td><td></td><td></td><td></td><td></td></tr><tr><td> </td><td></td>";
echo "<td><input type=\"submit\" name=\"submit\" style=\"background-image: url('submit.gif'); width: 78px; height: 28px; border:0px solid;\" value=\"\"/></td><td style=\"text-align: right\"><input type = \"reset\" value=\"Wyczysc\"></td><td></td></form></tr></table>"; }
elseif (!empty($_POST['tresc']) && !empty($_POST['imie']) && !empty($_POST['email'])) {
if (eregi("^[[:alnum:]][a-z0-9_.-]*@[a-z0-9.-]+.[a-z]{2,4}$", stripslashes($_POST['email']))){
$message = "Tre¶æ:\n$_POST[tresc]\n\n\nWys³a³: $_POST[imie]";
$header = "From: $_POST[email] ";
@mail("adres","tytul","$message","$header") or
die('B³±d - Spróbuj Ponownie');
echo "<span style=\"color: #FF0000; text-align: center;\">Wiadomosc zostala wyslana</span>"; } else {
echo "<span style=\"color: #FF0000; text-align: center;\"></span>";
echo "<table border=\"0\"><form method=\"post\"><tr height=\"50\"><td></td><td colspan=\"4\" style=\"text-align: center\"><span style=\"color: #FF0000; text-align: center;\"><b>Adres e-mail nie jest poprawny</b></span></td></tr>";
echo "<tr><td></td><td></td><td><b>Tre¶æ Wiadomo¶ci: </b></td><td></td><td></td></tr><tr><td></td><td></td><td colspan=\"2\"><textarea name=\"tresc\" style=\"width: 434px; height: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px; overflow:hidden\" wrap=\"virtual\"></textarea></td><td></td>";
echo "</tr><tr><td></td><td style=\"text-align: right\"><b>Imiê: </b></td><td><input type=\"text\" name=\"imie\" style=\"width: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px\"></td><td style=\"text-align: right\"><input type=\"text\" name=\"email\" style=\"width: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px\"></td><td><b> :Mail</b></td></tr>";
echo "<tr height=\"15\"><td width=\"16\"></td><td></td><td></td><td></td><td></td></tr><tr><td> </td><td></td><td><input type= \"submit\" name=\"submit\" value=\"Wy¶lij\"></td><td style=\"text-align: right\"><input type= \"reset\" value=\"Wyczysc\"></td><td></td></form></tr></table>"; }
} else {
echo "<table border=\"0\"><form method=\"post\"> <tr height=\"50\"><td></td><td colspan=\"4\" style=\"text-align: center\"><span style=\"color: #FF0000; text-align: center;\"><b>Wszystkie pola s± obowi±zkowe</b></span></td></tr>";
echo "<tr><td></td><td></td><td><b>Tre¶æ Wiadomo¶ci: </b></td><td></td><td></td></tr><tr><td></td><td></td><td colspan=\"2\"><textarea name=\"tresc\" style=\"width: 434px; height: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px; overflow:hidden\" wrap=\"virtual\"></textarea></td><td></td></tr>";
echo "<tr><td></td><td style=\"text-align: right\"><b>Imiê: </b></td><td><input type=\"text\" name=\"imie\" style=\"width: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px\"></td><td style=\"text-align: right\"><input type=\"text\" name=\"email\" style=\"width: 150px; border-style: double; border-color: #6eb4d8; border-top-width: 1px ; border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px\"></td><td><b> :Mail</b></td></tr>";
echo "<tr height=\"15\"><td width=\"16\"></td><td></td><td></td><td></td><td></td></tr><tr><td> </td><td></td><td><input type= \"submit\" name=\"submit\" value=\"Wy¶lij\"></td><td style=\"text-align: right\"><input type= \"reset\" value=\"Wyczysc\"></td><td></td></form></tr></table>"; }
?>