On Tue, Sep 30, 2003 at 09:10:44AM -0700, Chris W. Parker wrote:
: 
: Angelo Zanetti <mailto:[EMAIL PROTECTED]>
:     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;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to