mi dite perche la funzione header non va?? rimane la pagina bianca
Codice PHP:
 ?><?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_utenti "localhost";
$database_utenti "xxxxi";
$username_utenti "xxxx";
$password_utenti "xxxxxx";
$utenti mysql_pconnect($hostname_utenti$username_utenti$password_utenti) or trigger_error(mysql_error(),E_USER_ERROR); 
?>

<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue ""
{
  
$theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  
$theValue function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch (
$theType) {
    case 
"text":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;    
    case 
"long":
    case 
"int":
      
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case 
"double":
      
$theValue = ($theValue != "") ? "'" doubleval($theValue) . "'" "NULL";
      break;
    case 
"date":
      
$theValue = ($theValue != "") ? "'" $theValue "'" "NULL";
      break;
    case 
"defined":
      
$theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue;
      break;
  }
  return 
$theValue;
}
}

$colname_Recordset1 "-1";
if (isset(
$_GET['username'])) {
  
$colname_Recordset1 $_GET['username'];
}
mysql_select_db($database_utenti$utenti);
$query_Recordset1 sprintf("SELECT id, email FROM member WHERE username = %s"GetSQLValueString($colname_Recordset1"text"));
$Recordset1 mysql_query($query_Recordset1$utenti) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 mysql_num_rows($Recordset1);

$oggi date("j F Y G:i");
$sito "http://www.tuosito.xx";
$ip "$_SERVER[REMOTE_ADDR]";
$browser "$_SERVER[HTTP_USER_AGENT]";
$to "$row_Recordset1[email]";
$soggetto "xxxx";



$body "Richiesta di reset  password avvenuta il $oggi da indirizzo ip $ip dal sito xxxxx  \n\n";
$body .= "\n\nATTENZIONE: Clicca sul link qui sotto per resettare  la tua password e registrarne una nuova.\n\nVai su [url]http://xxxxx/reset-password.php?id=[/url]$row_Recordset1[id]   ";


    
 
mail("$to","$soggetto","$body""From: xxx<xxxxx>");



mysql_free_result($Recordset1);





header ("Location: [url]http://xxxxx/rescue-password-ok.php[/url]");

?>