Hi Jeremy
You might try the following:
1. set your form elements up so each input can be accessible as part of an
associative array e.g.
2. create a trusted fields array in your mailing script:
$trusted_fields = array("forename", "surname");
order this array in the or
If you just want ALL the fields of the form the appear one after the other
(with something \n after each), then you could just loop through the POST
vars (assuming you used ), which would
be either in the $_POST array or the $HTTP_POST_VARS array.
something like:
$value)
{
$msg .= "{$ke
Jeremy Bowen wrote:
> Hey,
>
> I have looked in PHP manual but I cannot seem to find what I am looking for.
>
> I have a very large form that I need to be able to mail. I just don't want
> to have to code all of the field into my mail() function.
>
> Thanks,
>
> Jeremy
>
>
ðÒÉ×ÅÔ!
*IF* the
I suppose this is not the answer you are looking for, but it's the only
one a newbie like me knows. Try to build a $body variable and pass it to
the mail() function. Try this:
$from = $sender_field;
$subject = $subject_field;
$body = $form_field1;
$body .= $form_field2;
$body .= $form_field3;
$
4 matches
Mail list logo