Si.. ma non capisco... io ho questo coso qua
Codice PHP:
<form action="?pagina=link_on" method="post">
<div align="justify">
<table width="352" border="0" cellspacing="2" cellpadding="0">
<tr>
<th valign="middle" class="testo" scope="row"><div align="right">
<font size="1" face="Verdana">Nome:</font></div></th>
<td valign="top" class="testo" width="221">
<font face="Verdana" size="1" color="#FFFFFF"><input name="nome" type="text" size="20" maxlength="32"></font></td>
</tr>
<tr>
<th valign="middle" class="testo" scope="row"><div align="right">
<font size="1" face="Verdana">E-mail:</font></div></th>
<td valign="top" class="testo" width="221">
<font face="Verdana" size="1" color="#FFFFFF"><input name="email" type="text" size="20" maxlength="32"></font></td>
</tr>
<tr>
<th valign="middle" class="testo" scope="row"><div align="right">
<font size="1" face="Verdana">Oggetto:</font></div></th>
<td valign="top" class="testo" width="221">
<font face="Verdana" size="1" color="#FFFFFF"><input name="subject" type="text" size="20" maxlength="32"></font></td>
</tr>
<tr>
<th valign="middle" class="testo" scope="row"><div align="right">
<font size="1" face="Verdana">URL banner(88x31): </font> </div></th>
<td valign="top" class="testo" width="221">
<font face="Verdana" size="1" color="#FFFFFF"><input name="URLbanner" type="text" size="20" maxlength="100"></font></td>
</tr>
<tr>
<th valign="middle" class="testo" scope="row"><div align="right">
<font size="1" face="Verdana">URL sito/forum/blog </font>
<a id="fus_1638" name="">
<font face="Verdana">
<span class="testo">
<font size="1">:</font></span></font></div></th>
<td valign="top" class="testo" width="221">
<font face="Verdana" size="1" color="#FFFFFF"><input name="URLsito" type="text" size="20" maxlength="100"></font></td>
</tr>
<tr>
<th valign="middle" class="testo" scope="row"><div align="right">
<font size="1" face="Verdana">Posizione del nostro banner sul tuo sito: </font> </div></th>
<td valign="top" class="testo" width="221">
<font face="Verdana" size="1" color="#FFFFFF"><select name="posizione" size="1">
<option value="homepage">Home Page</option>
<option value="secondaria">Pagina Secondaria</option>
<option value="tutte">In tutte le pagine</option>
</select></font></td>
</tr>
<tr>
<th valign="middle" class="testo" scope="row"><div align="right">
<font size="1" face="Verdana">Messaggio: </font> </div></th>
<td valign="top" width="221">
<font face="Verdana" size="1" color="#000000">
<textarea name="msg" cols="25" rows="5" wrap="VIRTUAL">
</textarea></font></td>
</tr>
<tr>
<th scope="row"><div align="right">
<font face="Verdana" size="1" color="#FFFFFF">
<input type="submit" value="Invia"></font><font size="1" face="Verdana"> </font>
</div></th>
<td width="221"><font face="Verdana" size="1" color="#FFFFFF"><input type="reset" value="Annulla"></font></td></tr></table></div></form></span>
e si collega a link_on
Codice PHP:
<?php
$receiverMail = "kingdomdaniel@hotmail.it";
$name = ltrim(rtrim(strip_tags(stripslashes($_POST['name']))));
$email = ltrim(rtrim(strip_tags(stripslashes($_POST['email']))));
$subject = ltrim(rtrim(strip_tags(stripslashes($_POST['subject']))));
$msg = ltrim(rtrim(strip_tags($_POST['msg'])));
$ip = getenv("REMOTE_ADDR");
$msgformat = "From: $name ($ip)\nEmail: $email\n\n$msg";
// VALIDATION
if(empty($name) || empty($email) || empty($subject) || empty($msg)) {
echo "<h3>RICHIESTA NON INVIATA!</h3><p>Prima di inviare compila TUTTI i campi!</p>";
}
elseif(!ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
echo "<h3>RICHIESTA NON INVIATA!</h3><p>Inserisci un indirizzo e-mail valido!</p>";
}
else {
mail($receiverMail, $subject, $msgformat, "From: $name <$email>");
echo "<h3>RICHIESTA INVIATA!</h3>"; }
?>
e non mi da.. mi dice di compilare i tutti i campi anche se li conpilo... è chiaro che devo modificare qualcosa in link_on ma non so cosa.. me lo dite?