in reply to Calling a radio button to the second cgi script

You have HTML code like:

<INPUT TYPE=radio NAME=Gift Value=Diamond Bracelet CHECKED>Diamond Bra +celet<BR><BR>

I suspect that not quoting attribute values is going to cause you problems. Does the attribute Value equal "Diamond", "Diamond Bracelet", "Diamond Bracelet CHECKED" or is it left unassigned due to silently ignoring a parsing error. Quoting the attribute values makes it absolutely clear, both to human readers and browsers alike, what the attribute value is.

<INPUT TYPE="radio" NAME="Gift" Value="Diamond Bracelet" CHECKED>Diamo +nd Bracelet<BR><BR>

Quoted attribute values are always allowed; under certain conditions, quoting is optional. I find it easier to simply quote all values and then no longer concern myself with this aspect of HTML markup syntax.

Update: s/assigned/unassigned/

-- Ken

Replies are listed 'Best First'.
Re^2: Calling a radio button to the second cgi script
by tobyink (Canon) on Jun 12, 2012 at 05:50 UTC

    Per HTML5, this:

    <INPUT TYPE=radio NAME=Gift Value=Diamond Bracelet CHECKED>Diamond Bra +celet

    is exactly equivalent to this:

    <INPUT TYPE="radio" NAME="Gift" Value="Diamond" Bracelet="" CHECKED="" +>Diamond Bracelet
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
Re^2: Calling a radio button to the second cgi script
by SuzieB (Initiate) on Jun 12, 2012 at 03:07 UTC
    Hi Ken, I was thinking about the same thing (that's what I was taught) but I realized that the codes in the textbook did not show that the values were in quotes.

      Suzie, it would have been useful if you'd identified the textbook or posted some relevant extract.

      Here's what the World Wide Web Consortium (W3C) has to say:

      ... In certain cases, authors may specify the value of an attribute without any quotation marks. ... We recommend using quotation marks even when it is possible to eliminate them. ...

      Extract from: 3.2.2 Attributes

      -- Ken

      If you can get access to the server logs you can see what's values are being sent to the server. You'll probably see what kcott suggested-- that the values being sent are just the first word of the value. When I copied your html with the radio buttons and viewed the source in a browser (Firefox), it interpreted the first word of each as the value and ignored the second.

        If you can get access to the server logs you can see what's values are being sent to the server

        No you can't, servers don't log that stuff unless you add it yourself, and its mostly a waste of space

Re^2: Calling a radio button to the second cgi script
by Anonymous Monk on Jun 15, 2012 at 04:01 UTC
    Thanks a bunch Ken, this proves that textbooks are not always correct :) Thumbs up to you.
      Sorry about that Anon. Monk
Re^2: Calling a radio button to the second cgi script
by SuzieB (Initiate) on Jun 15, 2012 at 04:12 UTC
    Thanks a bunch Ken, this proves that textbooks are not always correct :) Thumbs up to you.