--- contact.php 2001/03/05 11:56:10 1.4 +++ contact.php 2001/03/05 15:36:16 1.7 @@ -18,6 +18,7 @@ $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); $from=str_replace(".php","",basename($HTTP_REFERER)); +if (strstr($from,"?")) $from=substr($from,0,strpos($from,"?")); $sth = $dbh->prepare("select email from emails where referer='$from' limit 1"); $sth->execute(); @@ -46,18 +47,13 @@ } else { $main="Your comment is sent to $mailto. Thank you."; include("quoted-printable.inc"); - iso_mail("$fullname ($country) <$email>",$mailto,$subject,$comment); -# $main.="
$mailto $fullname $email $country $subject $comment
"; + iso_mail("$fullname ($country) <$mailfrom>",$mailto,$subject,$comment); +# $main.="
$mailto $fullname $mailfrom $country $subject $comment
"; } $smarty->assign( array(MAIN=>$main, from=>$from, contact_section=>1, )); - -$smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)." -- $section --". - $url[0] . "from: $from"); - - $smarty->display("index.tpl"); ?>