Posted by william.clarke on 08/27/06 22:42
Jerry Stuckle wrote:
> See my earlier suggestion. Before checking if it's an array, you should
> see if it's even set:
>
> if(isset($_POST['lunch']) && is_array($_POST['lunch']) &&
> count($_POST['lunch'])) {
> foreach ($_POST['lunch'] as $choice) {
> print "You want a $choice bun. <br>";
> }
> }
>
> BTW - <br/> is valid for xml but not html.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
<br /> for XHTML
<br> for HTML
Navigation:
[Reply to this message]
|