Help!!
So the problem is this;
I have a form with about 80 text inputs. And i would like to post forward only the fields that have been filled (given a value). As there are soooo many input fields, i really dont want to get the list of all id´s without a value to my e-mail. My script is following;
<?php
extract($_POST);
$message = "Ohesta löydät web-palvelun kautta tekemäsi tilauksen. "."\n";
$message .= 'Asiakasnumero: ';
$message .= $_SESSION["username"]."\n";
foreach($_POST as $key => $val)
$message .= "$key: $val\n";
$sposti = $_POST['e-mail'];
mail( "example@example.com", "Tilaus",
$message, "From: $sposti" );
?>
Now I guess somekind of "if" script is needed, but i havent got anything working so far...!?
Thanks!