code:<pre style="font-size:x-small; font-family: monospace;"> $email = "$till";
$subject = "Bekr?ftelse ifrÂn företaget";
$ip = getenv("HTTP_PC_REMOTE_ADDR");
$respekt = sql_query("select username, time, host_addr, guest, hosttype, browser, produkt, klar, title, antal, spec, sort from ".$prefix."_offert where host_addr=´$ip´ order by title", $dbi);
while(list($username, $time, $host_addr, $guest, $hosttype, $browser, $produkt, $klar, $title, $antal, $spec, $sort) = sql_fetch_row($respekt, $dbi)) {
if ($antal!= "nul") {
$antal = "$antal";
} else {
$antal = "1";
}
if ($antal!= "") {
$antal = "$antal";
} else {
$antal = "1";
}
if ($spec!= "nul") {
$spec = "$spec";
} else {
$spec = "inget angivit";
}
$message = "Tack $namn f?r din intresseanm?lan!
Detta ?r informationen som vi erhÂllit utav dig.
-------------------------------------------------
$title $antal/st , $spec
";
}
mail($email, $subject, $message, "From: offert@mindomän.se
X-Mailer: PHP/". phpversion()); </pre>