: 1. Thanks
: 2. Could you write all my script, because I don't know where and how
: add your code [$ip = getenv ("REMOTE_ADDR");]??
Sure, but what is that $whosentyou variable? Don't see where that's coming from..
<?
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
$ip = getenv("REMOTE_ADDR");
if (!isset($_REQUEST['email'])) {
header( "Location: http://www.test.gr/members/sendmail.html" );
}
elseif (empty($email) || empty($whosentyou)) {
?>
<html>
<head><title>Σφάλμα</title></head>
<body>
<center><h1>Σφάλμα</h1></center>
<p><center>
Ουουπς, ξεχάσατε να συμπληρώσετε είτε την email address σας είτε κάποιο άλλο
πεδίο. <br>
Παρακαλούμε πατήστε το πλήκτρο BACK του προγράμματος περιήγησης <br>και
δοκιμάστε ξανά.
</center></p>
</body>
</html>
<?
}
else {
mail( "webmaster@test.gr", "Αίτηση για πρόσβαση στη σελίδα της νομοθεσίας",
"$message\nΑπό πού πληροφορηθήκατε για το σιτέ μας? $whosentyou\n\nΑπό πού δεν
πληροφορηθήκατε για το σιτέ μας? $whodontsentyou\nIP Address: $ip\n",
"From: $name <$email>" );
header( "Location: http://www.test.gr/eyxaristoume.htm" );
}
?>
You need to put $ip somewhere in the email as you want it. BTW, PHP isn't really my thing, I'm a Perl programmer who can do some simple PHP stuff because of the similarities, so while I'm pretty sure what I've done there is OK, no promises.
Hope this helps,
Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");