Re: arrays and php

From: Date: Tue, 30 Sep 2003 21:11:56 +0000
Subject: Re: arrays and php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164455@lists.php.net to get a copy of this message
On Tue, Sep 30, 2003 at 09:10:44AM -0700, Chris W. Parker wrote: : : Angelo Zanetti <mailto:binc2@ctech.ac.za> : on Tuesday, September 30, 2003 5:43 AM said: : : > hi I have a table with rows and each row contains a checkbox ( array) : > and a record. TD of the checkbox: : > echo("<td width=15 bgcolor=#9FD9FF><input type=checkbox name=chkR[] : > value=". $chkSessionF[$i] ."></td>"); : : Firstly you should be putting double quotes around every value in your : HTML tags. : : Revised: (watch wrap) : : echo "<td width=\"15\" bgcolor=\"#9FD9FF\"><input type=\"checkbox\" : name=\"chkR[]\" value=\"{$chkSessionF[$i]}\"></td>"; A heredoc is more readable: echo <<<HTMLTAG <td width="15" bgcolor="#9FD9FF"><input type="checkbox" name="chkR[]" value="{$chkSessionF[$i]}"></td> HTMLTAG;

« previous php.general (#164455) next »