PHP checkboxes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • philphanluvr@hotmail.com

    PHP checkboxes

    How do I send CHECKBOXES via email through the mail() function in PHP?

    Example: You have 67 checkboxes, all with unique names, but only want
    to send the ones that were checked.

    Mailer: Verifies only 2 of those 67 were checked, so the email only
    has 2 checkboxes checked.
  • Geoff Berrow

    #2
    Re: PHP checkboxes

    I noticed that Message-ID:
    <fb627e1c.03091 32129.267e6cde@ posting.google. com> from
    philphanluvr@ho tmail.com contained the following:
    [color=blue]
    >How do I send CHECKBOXES via email through the mail() function in PHP?
    >
    >Example: You have 67 checkboxes, all with unique names, but only want
    >to send the ones that were checked.
    >
    >Mailer: Verifies only 2 of those 67 were checked, so the email only
    >has 2 checkboxes checked.[/color]

    Name them sequentially ie 1,2,3...67 and then use a loop to check if each
    one exists. If it does, include it in the mail.

    --
    Geoff Berrow
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

    Comment

    • powerboy

      #3
      Re: PHP checkboxes

      philphanluvr@ho tmail.com wrote:
      [color=blue]
      > How do I send CHECKBOXES via email through the mail() function in PHP?
      >
      > Example: You have 67 checkboxes, all with unique names, but only want
      > to send the ones that were checked.
      >
      > Mailer: Verifies only 2 of those 67 were checked, so the email only
      > has 2 checkboxes checked.[/color]


      Why would you need to have a checkbox in the email anyway? Wouldn't an
      indication that something was checked be better?

      Using form elements in a html email doesn't seem neccessary, where you
      could easily use plain text.

      Like the other poster suggested though for what to include.

      Comment

      • Geoff Berrow

        #4
        Re: PHP checkboxes

        I noticed that Message-ID: <xn0d3ainv1zz99 j003rarextreme@ workstation> from
        powerboy contained the following:
        [color=blue]
        >Why would you need to have a checkbox in the email anyway? Wouldn't an
        >indication that something was checked be better?
        >
        >Using form elements in a html email doesn't seem neccessary, where you
        >could easily use plain text.[/color]

        I assumed he meant checkbox values.

        Only spammers send mail in html don't they? ;-)

        --
        Geoff Berrow
        It's only Usenet, no one dies.
        My opinions, not the committee's, mine.
        Simple RFDs http://www.ckdog.co.uk/rfdmaker/

        Comment

        • philphanluvr@hotmail.com

          #5
          Re: PHP checkboxes

          Geoff Berrow <$bl$@ckdog.co. uk> wrote in message news:<2p19mv45r 7n7m40avpvnabvf lfj636c6k7@4ax. com>...[color=blue]
          > I noticed that Message-ID: <xn0d3ainv1zz99 j003rarextreme@ workstation> from
          > powerboy contained the following:
          >[color=green]
          > >Why would you need to have a checkbox in the email anyway? Wouldn't an
          > >indication that something was checked be better?
          > >
          > >Using form elements in a html email doesn't seem neccessary, where you
          > >could easily use plain text.[/color]
          >
          > I assumed he meant checkbox values.
          >[/color]


          That's exactly what I meant

          If you have the option to check:

          Cookie, Cake, Candy, Beef, Pasta, Sauce

          And someone checked

          Cookie

          Cake

          and Candy

          then the Email would say:

          THEY WANT: Cookie, Cake, Candy

          But it wouldn't mention any of the others.

          Comment

          Working...