Jump to content

Archived

This topic is now archived and is closed to further replies.

Freebeeezz

mail values from List with Multiple Selections

Recommended Posts

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.....

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.