$_POST

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • www.webpolis.com.ar

    $_POST

    Hi!

    I have this code:

    <form action="get.php " method="post" enctype="text/plain">
    <p align=center><s trong>NUMERO DE CLIENTE</strong></p>
    <p align=center><i nput maxlength=10 size=10 type=text
    name="idcliente "><br>
    <center><strong ><font face=verdana size=2>Clave de acceso</strong></
    font>
    <center><p align=center><i nput maxlength=12 size=12 type=password
    name="idpass"></p>
    <input type=hidden name="clave">
    <p align=center><I NPUT NAME="boton" TYPE="SUBMIT" VALUE="Aceptar" ></p>
    </p>
    --------------------
    using that code i cannot see the $_POST vars from the input fields...
    but when i remove the 'enctype="text/plain"' field, everything goes
    fine.... why? someone to explain me the difference please...

    regards
    N41K0

  • ZeldorBlat

    #2
    Re: $_POST

    On May 2, 6:09 pm, "www.webpolis.c om.ar" <respaldo.tecn. ..@gmail.com>
    wrote:
    Hi!
    >
    I have this code:
    >
    <form action="get.php " method="post" enctype="text/plain">
    <p align=center><s trong>NUMERO DE CLIENTE</strong></p>
    <p align=center><i nput maxlength=10 size=10 type=text
    name="idcliente "><br>
    <center><strong ><font face=verdana size=2>Clave de acceso</strong></
    font>
    <center><p align=center><i nput maxlength=12 size=12 type=password
    name="idpass"></p>
    <input type=hidden name="clave">
    <p align=center><I NPUT NAME="boton" TYPE="SUBMIT" VALUE="Aceptar" ></p>
    </p>
    --------------------
    using that code i cannot see the $_POST vars from the input fields...
    but when i remove the 'enctype="text/plain"' field, everything goes
    fine.... why? someone to explain me the difference please...
    >
    regards
    N41K0
    What happens if you use an enctype of "applicatio n/x-www-form-
    urlencoded" ? That's the default. I've never heard of using text/
    plain -- although I can't say I've given it much thought either.

    Comment

    • dawnerd

      #3
      Re: $_POST

      On May 2, 3:09 pm, "www.webpolis.c om.ar" <respaldo.tecn. ..@gmail.com>
      wrote:
      Hi!
      >
      I have this code:
      >
      <form action="get.php " method="post" enctype="text/plain">
      <p align=center><s trong>NUMERO DE CLIENTE</strong></p>
      <p align=center><i nput maxlength=10 size=10 type=text
      name="idcliente "><br>
      <center><strong ><font face=verdana size=2>Clave de acceso</strong></
      font>
      <center><p align=center><i nput maxlength=12 size=12 type=password
      name="idpass"></p>
      <input type=hidden name="clave">
      <p align=center><I NPUT NAME="boton" TYPE="SUBMIT" VALUE="Aceptar" ></p>
      </p>
      --------------------
      using that code i cannot see the $_POST vars from the input fields...
      but when i remove the 'enctype="text/plain"' field, everything goes
      fine.... why? someone to explain me the difference please...
      >
      regards
      N41K0
      Try changing it to enctype="multip art/form-data" or
      enctype="applic ation/x-www-form-urlencoded"

      You should not need to use either of these really. Unless you are
      doing file uploads.

      Comment

      • axlq

        #4
        Re: $_POST

        In article <1178143744.972 245.246760@p77g 2000hsh.googleg roups.com>,
        www.webpolis.com.ar <respaldo.tecni co@gmail.comwro te:
        >using that code i cannot see the $_POST vars from the input fields...
        >but when i remove the 'enctype="text/plain"' field, everything goes
        >fine.... why? someone to explain me the difference please...
        Probably has something to do with the fact that text/plain won't
        encode special characters like spaces. Text/plain would probably
        work if you don't have string inputs (numeric or checkboxes only),
        but I'm not sure. In any case, I've never needed to use that in my
        forms.

        -A

        Comment

        • www.webpolis.com.ar

          #5
          Re: $_POST

          On 2 mayo, 22:42, a...@spamcop.ne t (axlq) wrote:
          In article <1178143744.972 245.246...@p77g 2000hsh.googleg roups.com>,
          >
          www.webpolis.co m.ar<respaldo.t ecn...@gmail.co mwrote:
          using that code i cannot see the $_POST vars from the input fields...
          but when i remove the 'enctype="text/plain"' field, everything goes
          fine.... why? someone to explain me the difference please...
          >
          Probably has something to do with the fact that text/plain won't
          encode special characters like spaces. Text/plain would probably
          work if you don't have string inputs (numeric or checkboxes only),
          but I'm not sure. In any case, I've never needed to use that in my
          forms.
          >
          -A

          thanks a lot guys! my best regards...

          Comment

          Working...