[thelist] beginner PHP question

Martin Kuplens-Ewart martin at takingitglobal.org
Sat Feb 16 11:59:08 CST 2002

> <input type="text" name="form[]" />
> <input type="text" name="form[]" />

Alternatively, you could name="form[FirstName]" etc. for each field.

Then in the process...
foreach($form as $name => $value)

I use that syntax to build forms submitting to email...

The //process gets replaced with
$message .= $name.": ".$value;

And at the end I invoke the mail() function.


More information about the thelist mailing list