Jump to content


Photo

mail values from List with Multiple Selections


  • Please log in to reply
No replies to this topic

#1 Freebeeezz

Freebeeezz
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 07 April 2005 - 07:49 AM

Hi,

I have a little problem, I have a mailform with a List/Menu (named informatie) witch allows Multiple Selections.
When I test it and select some from the list only the last selection is shown in the e-mail.

The form is Posted to a PHP mailscript, listed here below.

<?php

@extract($_POST);
$email = stripslashes ($email);
$naam = stripslashes($naam);
$adres = stripslashes($adres);
$postcode = stripslashes($postcode);
$woonplaats = stripslashes($woonplaats);
$info = stripslashes($info);
$prijsindicat = stripslashes($prijsindicat);
$telnr = stripslashes($telnr);
$informatie = stripslashes($informatie);
$opmerkingen = stripslashes($opmerkingen);

$body = "$naam heeft zojuist het formulier van de website ingevuld.\n";
$body .= "\nAdres: $adres";
$body .= "\nPostcode: $postcode";
$body .= "\nWoonplaats: $woonplaats";
$body .= "\nInformatie sturen?: $info";
$body .= "\nPrijsindicatie sturen?: $prijsindicat";
$body .= "\nTelefoonnummer: $telnr\n";
$body .= "Informatie over: $informatie";
$body .= "\nOpmerkingen: $opmerkingen";
mail('my@email.com',$subject,$body,"From: $naam <$email>");
header("location:email.htm");
?>

Who can give me some help on this one?

Thanks.....

Freebeeezz.....




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users