in reply to Re: Calling a radio button to the second cgi script
in thread Calling a radio button to the second cgi script

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.
  • Comment on Re^2: Calling a radio button to the second cgi script

Replies are listed 'Best First'.
Re^3: Calling a radio button to the second cgi script
by kcott (Archbishop) on Jun 12, 2012 at 04:05 UTC

    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

Re^3: Calling a radio button to the second cgi script
by bitingduck (Deacon) on Jun 12, 2012 at 04:45 UTC

    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

        My hosting server logs include all the parameter lists in the requested URLs by default. It doesn't take that much space.

        Update: The default apache install on OS X will also show the parameter list in the log if you change the POST to a GET. You don't want to leave it that way, but it can be useful for debugging. It indeed sends only one word values, as pointed out in several replies now.