-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

<form>
<table>
<tr>
        <td>[+ $set[$row]{name} +]</td>
        <td><input name=foo value='Y'></td>
</tr>
</table>
</form>

If I submit this form, $fdat{foo} will contain a tab-separated string 
of 'Y' and '' values.
However when I do this, all the input fields will have a 'checked' in 
them.  I suspect it's keying off the first value in $fdat{foo}. It 
ought to index the tab-separated string by the $row value.  I tried 
to work around this:
        <input name=foo value='Y' [+ 'checked' if (...) +]>
but that just ended up with two 'checked' values in some places.
I finally did this:
        [- $fdat{foo} = ... -]
        <input name=foo value='Y'>
and thus fooled it into putting the right value there.

(I do wish that $fdat{foo} were a reference to an array--but that's a 
separate issue)
- -- 

Kee Hinckley - Somewhere.Com, LLC - Cyberspace Architects
Now Playing - Folk, Rock, odd stuff - http://www.somewhere.com/playlist.cgi

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOr5ePSZsPfdw+r2CEQJkXwCg9K9wSQjKVswCfn2mzzC+FnwOcvAAoJeO
RdKzuhpVQMCT9KYShVf57jWi
=jcD6
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to