Invio e-mail con i dati del sito
Salve,
ho lo script "login redirect 1.3" scaricato dal sito www.mpdolan.com . In poche parole, lo script in php mi fa un redirect della pagina in base all'user e alla password inseriti. io l'unica cosa che desidererei è che quando vengono inseriti i dati di accesso, mi venisse inviata una e-mail con i dati inseriti. Se non fosse particolarmente difficile, sarebbe utile riportare anche l'ip e qualche altra informazione sull'utente che ha inserito i dati. In modo da capire se è stato un errore di digitazione o è qualche "furbetto" che cerca di intrufolarsi negli account altrui.
Grazie mille per l'aiuto.
Codice HTML:
<head>
</head>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<body background="sfondo.gif">
<div align="center">
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font face="Imprint MT Shadow" color="#FF6633" style="font-size: 35pt">nome
</font></p>
<p align="center" style="margin-top: 0; margin-bottom: 0">
<font face="Imprint MT Shadow" color="#FF6633" style="font-size: 35pt">
Pagina
di Accesso</font></p>
</div>
<p align="center">
<object classid="clsid27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="320" height="240">
<param name="movie" value="video.swf">
<param name="quality" value="High">
<param name="loop" value="false">
<embed src="tiamo.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="320" height="240" quality="High" loop="false"></object>
</p>
<div align="center">
<table width="780" border="0" cellspacing="0" cellpadding="0" height="10">
<tr>
<td align="center" width="243">
<p style="margin-top: 0; margin-bottom: 0">
<img border="0" src="hk.gif" width="100" height="100"><td align="center" width="292"><form action="login/redirect.php" method="post">
<table width="244" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="structure_00.gif" width="280" height="46"></td>
</tr>
<tr align="left" valign="middle">
<td width="140" height="30" align="left"><div align="center"><strong>User : </strong></div></td>
<td width="113" height="30">
<input name="username" type="text" id="user" size="15"></td>
</tr>
<tr align="left" valign="middle">
<td height="30"><div align="center"><strong>Password : </strong></div></td>
<td height="30"><input name="password" type="password" id="password" size="15"></td>
</tr>
<tr align="right" valign="middle">
<td height="30"><input type="submit" name="Submit" value="Invia"></td>
<td height="30" align="left"><input type="reset" name="Submit" value="Ripristina"></td>
</tr>
<tr>
<td colspan="2">
<img src="structure_01.gif" width="280" height="46" border="0" usemap="#Map"></td>
</tr>
</table>
</p>
<td align="center" width="245">
<img border="0" src="hk.gif" width="100" height="100"></table>
</div>
</body>
<?php
$message = "Dati Inseriti Nome: ".$_POST['nome']." Password: ".$_POST['password']." Indirizzo IP: ".$_POST['ip'];
// Send
mail('lamia@email.it', Oggetto, $message);
$chCounter_visible = 0;
$chCounter_status = 'active';
$chCounter_page_title = 'titolo';
include( 'C:\Inetpub\vhosts\ilmiosito.ext\httpdocs\stats\counter.php' );
?>