473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

$_POST

Hi!

I have this code:

<form action="get.php" method="post" enctype="text/plain">
<p align=center><strong>NUMERO DE CLIENTE</strong></p>
<p align=center><input 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><input maxlength=12 size=12 type=password
name="idpass"></p>
<input type=hidden name="clave">
<p align=center><INPUT 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

May 2 '07 #1
4 2292
On May 2, 6:09 pm, "www.webpolis.com.ar" <respaldo.tecn...@gmail.com>
wrote:
Hi!

I have this code:

<form action="get.php" method="post" enctype="text/plain">
<p align=center><strong>NUMERO DE CLIENTE</strong></p>
<p align=center><input 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><input maxlength=12 size=12 type=password
name="idpass"></p>
<input type=hidden name="clave">
<p align=center><INPUT 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 "application/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.

May 2 '07 #2
On May 2, 3:09 pm, "www.webpolis.com.ar" <respaldo.tecn...@gmail.com>
wrote:
Hi!

I have this code:

<form action="get.php" method="post" enctype="text/plain">
<p align=center><strong>NUMERO DE CLIENTE</strong></p>
<p align=center><input 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><input maxlength=12 size=12 type=password
name="idpass"></p>
<input type=hidden name="clave">
<p align=center><INPUT 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="multipart/form-data" or
enctype="application/x-www-form-urlencoded"

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

May 2 '07 #3
In article <11**********************@p77g2000hsh.googlegroups .com>,
www.webpolis.com.ar <re**************@gmail.comwrote:
>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
May 3 '07 #4
On 2 mayo, 22:42, a...@spamcop.net (axlq) wrote:
In article <1178143744.972245.246...@p77g2000hsh.googlegroups .com>,

www.webpolis.com.ar<respaldo.tecn...@gmail.comwrot e:
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...

May 4 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Adrian Parker | last post by:
Is it possible to click on a button, and not have it's value and name stored in _POST? I have this script with a button on it. When you click the button, the page posts to itself. The first...
4
by: Kevin | last post by:
I am having problems in my php code. I am relatively new to php but I know some basics. This is the problem: when i try to echo some information that is typed into form back to the screen i...
15
by: zorro | last post by:
greetings... I'm wondering what more advanced coders would think ot this: $_POST = clean($_POST); and now I can use POST directly: $sql= "select * from T1 where myvar='$_POST' " ;
7
by: Dynamo | last post by:
I am using values stored an $_POST array to display records from a table before asking the user if he is sure he wants to delete them. If the user confirms then the records are deleted. Without...
1
by: RDizzle | last post by:
okay. so all i am doing is changing a registration script that uses $_GET to a script that uses $_POST, but the validation script now returns NULL values for all posted vars. What's the deal? ...
6
by: comp.lang.php | last post by:
I have no idea why this is happening and I need someone to explain this to me at the simplest level absolutely possible (pretend I'm a 10-year old and explain it that way, please!) This class...
5
by: comp.lang.php | last post by:
// NEW 11/27/2006: FINALLY, IF YOU ADDED OR DELETED OR DID ANY KIND OF FORM ACTION SUCCESSFULLY, DON'T RE-DISPLAY THE NEW EXPENSE ITEMS VIA $_POST if ($_POST && (!is_array($leaseObj->errorArray)...
3
by: scabman | last post by:
Working on upgrading a site and after moving everything onto a test server (localhost) things started to get real buggy. Went through and checked all my links and everything comes up fine, but it...
12
by: Todd Michels | last post by:
Hi all, I am trying to send data from a form and insert it into a MSSQL DB. When I submit the data I get: Warning: mssql_query() : message: The name "Todd" is not permitted in this context....
5
Tarantulus
by: Tarantulus | last post by:
Hi, ok, quick description of the problem, I'm trying to reference the postdata from some checkboxes. Unfortunately the checkboxes are dynamically generated therefore I don't know how many there...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.