rilevamento indirizzo ip
quando ricevo una email da un form, vorrei ricevere nell'email anche l'indirizzo ip del mittente,
ho fatto piu tentativi, ma non sono ci riuscito ad inserirlo in questo modulo che segue
pagina html esempio
______________
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>messaggio</title>
</head><body>
<br>
<div style="text-align: center;"><br>
</div>
<form method="post" action="form.php">
<input name="required" value="email,nome" type="hidden"> <input name="oggetto" value="messaggio " type="hidden"> <br>
<table align="center" width="95%">
<tbody>
<tr>
<td colspan="2">
<div class="style1"><strong>
MESSAGGIO</strong></div>
</td>
</tr>
<tr>
<td style="height: 27px;" class="style3"> </td>
<td style="height: 27px;"> <strong> </strong></td>
</tr>
<tr>
<td style="height: 27px;" class="style3">NOME</td>
<td style="height: 27px;"><input name="cognome" style="width: 278px;" type="text"> <strong> </strong></td>
</tr>
<tr>
<td style="height: 28px;" class="style3">Città</td>
<td style="height: 31%;"><input name="citta" style="width: 178px;" type="text">
<span class="style4"><small><small><strong>
<small><span class="style6"><small><small><small>
<span class="style8"><small> </small></span> </small></small></small></span>
</small></strong></small></small></span></td>
</tr>
<tr>
<td class="style3">e-mail</td>
<td><input name="email" style="width: 225px;" type="text"><span class="style3"> </span></td>
</tr>
<tr>
<td class="style3" style="height: 114px;">Messaggio </td>
<td style="height: 114px;"><textarea rows="10" name="testo" style="width: 421px;" class="style20" cols="20"></textarea></td>
</tr>
<tr>
<td colspan="2" style="height: 23px;"> </td>
</tr>
<tr>
<td colspan="2" style="height: 23px;"> </td>
</tr>
<tr>
<td colspan="2">
<div class="style1"><input name="Submit" value="INVIA" type="submit"></div>
</td>
</tr>
</tbody>
</table>
<p> </p>
</form>
</body></html>
__________________
segue succesivo pagina php
quando ricevo una email da un form, vorrei ricevere nell'email anche l'indirizzo ip del mittente,
ho fatto piu tentativi, ma non sono ci riuscito ad inserirlo in questo modulo che segue
pagina html esempio
______________
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>messaggio</title>
</head><body>
<br>
<div style="text-align: center;"><br>
</div>
<form method="post" action="form.php">
<input name="required" value="email,nome" type="hidden"> <input name="oggetto" value="messaggio " type="hidden"> <br>
<table align="center" width="95%">
<tbody>
<tr>
<td colspan="2">
<div class="style1"><strong>
MESSAGGIO</strong></div>
</td>
</tr>
<tr>
<td style="height: 27px;" class="style3"> </td>
<td style="height: 27px;"> <strong> </strong></td>
</tr>
<tr>
<td style="height: 27px;" class="style3">NOME</td>
<td style="height: 27px;"><input name="cognome" style="width: 278px;" type="text"> <strong> </strong></td>
</tr>
<tr>
<td style="height: 28px;" class="style3">Città</td>
<td style="height: 31%;"><input name="citta" style="width: 178px;" type="text">
<span class="style4"><small><small><strong>
<small><span class="style6"><small><small><small>
<span class="style8"><small> </small></span> </small></small></small></span>
</small></strong></small></small></span></td>
</tr>
<tr>
<td class="style3">e-mail</td>
<td><input name="email" style="width: 225px;" type="text"><span class="style3"> </span></td>
</tr>
<tr>
<td class="style3" style="height: 114px;">Messaggio </td>
<td style="height: 114px;"><textarea rows="10" name="testo" style="width: 421px;" class="style20" cols="20"></textarea></td>
</tr>
<tr>
<td colspan="2" style="height: 23px;"> </td>
</tr>
<tr>
<td colspan="2" style="height: 23px;"> </td>
</tr>
<tr>
<td colspan="2">
<div class="style1"><input name="Submit" value="INVIA" type="submit"></div>
</td>
</tr>
</tbody>
</table>
<p> </p>
</form>
</body></html>
__________________
segue succesivo pagina php