Trying to write a form with checkboxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles LePage

    Trying to write a form with checkboxes

    Greetings! I'm attempting to write a form with checkboxes. This is a list
    of comic books, and what I need the form to do is produce a new page that
    only lists what the user has checked. And I'm completely stumped.

    <form action="" id="input" name="input">
    <input type="checkbox" value="buy" /> Strangers In Paradise Pkt Vol 1
    TPB, $17.95
    <input type="checkbox" value="buy" /> Strangers In Paradise Vol III #67,
    $2.95
    </form>
    <input type="submit" />



    *Charles S. LePage www.comiclist.com *
    * New Comic Book Releases List *
  • David Dorward

    #2
    Re: Trying to write a form with checkboxes

    Charles LePage wrote:
    [color=blue]
    > <form action="" id="input" name="input">[/color]

    The action needs to hold a URL to a server side script that does what you
    want. The specifics depend on the language you use for server side
    scripting, which depends on your server and personal preferences.
    [color=blue]
    > <input type="checkbox" value="buy" /> Strangers In Paradise Pkt Vol 1[/color]

    This needs a name.
    [color=blue]
    > </form>
    > <input type="submit" />[/color]

    This needs to be part of the form.

    You probably should read <http://www.cs.tut.fi/~jkorpela/forms/>

    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    • Harlan Messinger

      #3
      Re: Trying to write a form with checkboxes

      Charles LePage <chuck@comiclis t.com> wrote:
      [color=blue]
      >Greetings! I'm attempting to write a form with checkboxes. This is a list
      >of comic books, and what I need the form to do is produce a new page that
      >only lists what the user has checked. And I'm completely stumped.
      >
      ><form action="" id="input" name="input">
      ><input type="checkbox" value="buy" /> Strangers In Paradise Pkt Vol 1
      >TPB, $17.95
      ><input type="checkbox" value="buy" /> Strangers In Paradise Vol III #67,
      >$2.95
      ></form>
      ><input type="submit" />[/color]

      There are at least four things wrong with your code, so basic that it
      looks you're trying to do it before learning how to do it. I suggest
      you start by reading a guide to making HTML forms. Also, why are you
      using XML /> notation? In HTML, the slash is neither necessary nor
      valid. I'm assuming you're not using XHTML, since there probably isn't
      any reason why you would be.

      --
      Harlan Messinger
      Remove the first dot from my e-mail address.
      Veuillez ôter le premier point de mon adresse de courriel.

      Comment

      • Charles LePage

        #4
        Re: Trying to write a form with checkboxes

        On Sun, 01 Aug 2004 21:07:22 +0100, David Dorward <dorward@yahoo. com>
        wrote:
        [color=blue]
        >You probably should read <http://www.cs.tut.fi/~jkorpela/forms/>[/color]

        Thank you for the suggestion, I'll see if they have any examples of what
        I'm trying to do there.



        *Charles S. LePage www.comiclist.com *
        * New Comic Book Releases List *

        Comment

        • Charles LePage

          #5
          Re: Trying to write a form with checkboxes

          On Sun, 01 Aug 2004 16:32:35 -0400, Harlan Messinger
          <hmessinger.rem ovethis@comcast .net> wrote:
          [color=blue]
          >There are at least four things wrong with your code, so basic that it
          >looks you're trying to do it before learning how to do it. I suggest
          >you start by reading a guide to making HTML forms. Also, why are you
          >using XML /> notation? In HTML, the slash is neither necessary nor
          >valid. I'm assuming you're not using XHTML, since there probably isn't
          >any reason why you would be.[/color]

          The page (and my site) is "XHTML 1.0 Transitional". And no, I don't know
          how to do it, that is for certain.



          *Charles S. LePage www.comiclist.com *
          * New Comic Book Releases List *

          Comment

          Working...