hello
was wondering how I could do the following: want to make an template based MIME type emailer [form to mail] but instead of making hundreds of different emailers everytime I do a website is there not a way to read the keys and values of the form in by using a for loop?
I have seen something like this before but would like to know how to make it myself?
Thanx in advance
[man]foreach[/man] can be used for the looping.
foreach($_POST as $key=>$value) { //.... }
Inside the loop you'd want to check to see if $value is an array or not; and if it is, loop through that in the same way.
I re-wrote the form2mail.pl script from Matt's Script Archive in php - had to keep backwards compatability for existing forms, just a generic form2email script. Drop me a pm for the code.
Got lots of requests for it, so here it is attached.