[pmwiki-users] Input recipe
Patrick R. Michaud
pmichaud at pobox.com
Fri Jun 24 23:02:06 CDT 2005
On Fri, Jun 24, 2005 at 11:26:57PM -0400, Bronwyn Boltwood wrote:
> On 6/24/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > On Fri, Jun 24, 2005 at 01:59:33PM -0400, Bronwyn Boltwood wrote:
> > > ...
> > What are the control names and values of these checkboxes?
>
> > > [X] Send me newsletters (this is checked)
>
> This one is named "send me newsletters", and it is checked because of
> the capital X.
Fill in the question marks:
<input type='checkbox' name='Send me newsletters' value='???' checked='1' />
Also, I'm not sure that control names are allowed to have spaces, so this
would probably have to be "Send_me_newsletters".
> > > [x] Sell my address to penis enlargement vendors (this is unchecked)
>
> This one is named "sell my address", and it is unchecked because of
> the lowercase x.
<input type='checkbox' name='Sell_my_address' value='???' />
What if we need the input to go to a pre-existing cgi script that
requires specific names (e.g., "smember")?
> > > [o] 12-24 [o] Out of our target demographic [*] You're too nosy (default choice)
>
> Each radio button should be named after its label on the right. [*]
> is selected by default, because it resembles a solid circle. [o] is
> not selected because it is the outline of a circle.
In order for radio buttons to work they have to share the same name='...'
attribute. I suspect you mean that each radio button should have
a value taken after its label on the right -- something like:
<input type='radio' name='???' value='12-24' /> 12-24
<input type='radio' name='???' value='Out of our target demographic' />
Out of our target demographic
<input type='radio' name='???' value='You're too nosy' checked='1' />
You're too nosy
But we still need a shared name for the control.
Pm
More information about the pmwiki-users
mailing list