Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Attr EncType with Post

Status
Not open for further replies.

pmele

Programmer
Mar 14, 2001
22
US
A question which I hope someone can explain to me. I have a form which submits data using get

<form action="xxx" enctype="multipart/form-data">
blah - blah
</form>

This works fine up to 2000 chars due to the Get method. When I add the Post method attr, it doesn't work:

<form action="xxx" enctype="multipart/form-data" method="post">
blah - blah
</form>

Yet, if I remove the enctype attr it works fine:

<form action="xxx" method="post">
blah - blah
</form>


Yes, all the data in the form is text only. So why won't the post work with the enctype whereas the get does?

Thanks!

Paul Mele
DFAS-CL/TSTB
 
The way I understand it, the enctype attribute is only necessary when you're uploading a file. If you're passing nothing but input data from a form, enctype should not be necessary. And just to clarify, GET passes the form data as part of the URL while POST does it via the QUERY-STRING.

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top