Re: [PHP] Mailing all the elements of a form

2002-07-07 Thread Justin French
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 form action=blah.php method=post), which would be either in the $_POST array or the $HTTP_POST_VARS array. something like:

Re: [PHP] Mailing all the elements of a form

2002-07-07 Thread john
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. FORM ... input type=text name=input_array[forename] value= input type=text name=input_array[lastname] value= /FORM 2. create a trusted

RE: [PHP] Mailing all the elements of a form

2002-07-06 Thread César Aracena
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;

Re: [PHP] Mailing all the elements of a form

2002-07-06 Thread Alberto Serra
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 form is