[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)
{
	//process
}

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.

-m





More information about the thelist mailing list