Jump to content

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.