Leave the input name as email. If you really want to call it email[],
you should be able to reference this in JavaScript as the object
document.myform[email[]]
If you leave it as email, you can then convert the email variable into an
array using explode() or split() as so:
?php
// on the
document.myform[email[]] seems to give me a syntax error.
Check if your already using you'll need to use single quotes as so:
input type=button name=CheckAll value=Check All
onClick=checkAll(document.myform['email[]'])
(tested on IE 5.5 and NS 4.08, works)
If you leave it as email, you can
Example
?php
exampleLine = R001,23,\2,5\;
preg_match_all (/(\[^\]+\|[^,]+)/, exampleLine, $matches);
for ($i=0; $i count($matches[0]); $i++) {
echo matched: .$matches[0][$i].br;
}
?
Please note, empty elements will not be handled
btw Any Australian employers want a programmer for
3 matches
Mail list logo