Ciao,
tramite lo script in php sotto riportato, visualizzo alcune informazioni dell'utente, come lingua, ip, host ecc..queste informazioni però vorrei che in automatico comparissero ognuna all'interno di un campo del form html. Ad esempio:
campo1 --> ip
campo2 --> host
campo3 --> lingua
ecco il codice php che visualizza le informazioni:
Codice PHP:
<?
/*
* Phpip
* [url]http://www.swprog.com[/url]
*/
?>
<html>
<head>
<title>Dati Visitatore</title>
</head>
<body>
<?
$forwarded = $_SERVER['HTTP_X_FORWARDED_FOR'];
if ($forwarded == "") $ip = $_SERVER['REMOTE_ADDR'];
else $ip = $forwarded;
$hostname = gethostbyaddr($ip);
$language = $HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"];
?>
<center>
<table style="width:400px;font-family:Cambria">
<tr>
<td>[b]Indirizzo IP[/b]</td>
<td><? echo $ip; ?></td>
</tr>
<tr>
<td>[b]Hostname[/b]</td>
<td><? echo $hostname; ?></td>
</tr>
<tr>
<td>[b]Proxy[/b]</td>
<td>
<?
if ($forwarded == "") echo "Nessun Proxy Server Utilizzato";
else echo "Utilizzato Proxy Server";
?>
</td>
</tr>
<tr>
<td>[b]Lingua[/b]</td>
<td><? echo $language; ?></td>
</tr>
</table>
</center>
</body>
</html>
Grazie