5 Replies Latest reply on May 12, 2006 4:51 PM by Newsgroup_User

    Formmail:  "hidden"???    form action:  caps???

    Level 7
      I'm a little confused about some aspects of formmail. There is a ton of
      stuff on the configuration out on the web that I've looked at. I have two
      questions:

      1) It seems there's some confusion about the line:

      <form action="/cgi-sys/formmail.pl" method="post">

      Half of the things I read say that "post" needs to be in all caps, "POST",
      others show it in lower case. Why the discrepancy in case??

      2) "hidden" fields. The recipients line code normally reads something
      like:

      <input type=hidden name="recipient" value="whoever@yourdomain.com">

      My question is, what good is "hidden"??? When I open this up in a browser
      window and view the source, I can plainly see the email address, so what's
      "hidden" about it???


      Jenna


        • 1. Re: Formmail:  &quot;hidden&quot;???    form action:  caps???
          Level 7


          >
          > Half of the things I read say that "post" needs to be in all caps, "POST",
          > others show it in lower case. Why the discrepancy in case??

          caps or nocaps of the method attribute and it's value won't matter if it's
          html. If it's xhtml, they should be lowercase.


          When I open this up in a browser
          > window and view the source, I can plainly see the email address, so what's
          > "hidden" about it???

          a hidden form field means it doesn't show in browser view. It is in the
          code, and is passed to the form's action.

          That script path, /cgi-sys/ means this is a server-wide installed script.
          It's not in your local directory so you can't modify it. Formmail and
          formmail-clone don't offer the ability to keep the real email recipient's
          address out of the code- the page has to have the recipient value.

          You could install your own script that does offer this, and the email would
          be in the script code, not in the form page code.
          Perl: http://nms-cgi.sourceforge.net -->nms-formmail or TFMail
          PHP: http://www.boaddrink.com -->phpformmail (in this, use the recipient
          array instructions)

          • 2. Re: Formmail:  &quot;hidden&quot;???    form action:  caps???
            Level 7
            Thanks so much! That defnitely helps.

            J


            "Alan" <dont_mail_me_period@macromedia.com> wrote in message
            news:C08A2029.28DE06%dont_mail_me_period@macromedia.com...
            >
            >
            >>
            >> Half of the things I read say that "post" needs to be in all caps,
            >> "POST",
            >> others show it in lower case. Why the discrepancy in case??
            >
            > caps or nocaps of the method attribute and it's value won't matter if it's
            > html. If it's xhtml, they should be lowercase.
            >
            >
            > When I open this up in a browser
            >> window and view the source, I can plainly see the email address, so
            >> what's
            >> "hidden" about it???
            >
            > a hidden form field means it doesn't show in browser view. It is in the
            > code, and is passed to the form's action.
            >
            > That script path, /cgi-sys/ means this is a server-wide installed script.
            > It's not in your local directory so you can't modify it. Formmail and
            > formmail-clone don't offer the ability to keep the real email recipient's
            > address out of the code- the page has to have the recipient value.
            >
            > You could install your own script that does offer this, and the email
            > would
            > be in the script code, not in the form page code.
            > Perl: http://nms-cgi.sourceforge.net -->nms-formmail or TFMail
            > PHP: http://www.boaddrink.com -->phpformmail (in this, use the recipient
            > array instructions)
            >


            • 3. Re: Formmail:  &quot;hidden&quot;???    form action:  caps???
              Level 7
              On Fri, 12 May 2006 11:21:13 -0400, Alan
              <dont_mail_me_period@macromedia.com> wrote:

              >caps or nocaps of the method attribute and it's value won't matter if it's
              >html. If it's xhtml, they should be lowercase.

              Actually, it's still a matter of preference, even in XHTML. The
              attribute name "action" must be lower case, but the value "POST" can be
              any case. These are all valid XHTML:

              action="post"
              action="POST"
              action="Post"

              These are invalid XHTML:

              ACTION="post"
              ACTION="POST"
              ACTION="Post"
              Action="post"

              Gary
              • 4. Re: Formmail:  &quot;hidden&quot;???    form action:  caps???
                Level 7
                .oO(Gary White)

                >Actually, it's still a matter of preference, even in XHTML. The
                >attribute name "action" must be lower case, but the value "POST" can be
                >any case. These are all valid XHTML:
                >
                >action="post"
                >action="POST"
                >action="Post"

                4.11. Attributes with pre-defined value sets
                http://www.w3.org/TR/xhtml1/#h-4.11

                Micha
                • 5. Re: Formmail:  &quot;hidden&quot;???    form action:  caps???
                  Level 7
                  On Sat, 13 May 2006 00:15:18 +0200, Michael Fesser <netizen@gmx.de>
                  wrote:

                  >4.11. Attributes with pre-defined value sets
                  > http://www.w3.org/TR/xhtml1/#h-4.11


                  I stand corrected. Thanks, Micha.

                  Gary