![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Cannot pass data between forms with enctype="multipart/form-data" attribute[The Short Version]
It seems that I'm having an issue where I cannot pass data between forms when the form contains the enctype="multipart/form-data" attribute. Comment out the attribute and data can be passed from one form to the other but the form cannot be used to upload files. Thanks in advance for any suggestions [The Long Version] (Apache/PHP/MySQL) Problems with enctype="multipart/form-data" Hiya, I'm running Apache 1.3 / MySQL 3.23 / PHP 4.1.2 on Red Hat 7.3. I am trying to make a knowledge base app work and it almost is except that I cannot attach files to the KB entries that I create. The symptoms are (or rather were) that when I try and create an entry - I add a question/answer then click save - the question entry is created empty and contains none of the question/answer data I entered. A friend found that if he commented out (sort of) the enctype="multipart/form-data" part of the question submit form that the entries would be created properly with all their question/answer data. Here's the submit form line, you can see where enctype has been commented out as it now reads x_enctype="multipart/form-data": <form action="index.php?ToDo=%%GLOBAL_FormAction%%" x_enctype="multipart/form-data" onSubmit="return CheckAddQuestionForm();" name="frmAddQuestion" method="post"> The problem is that with the enctype commented out I cannot attach files to the questions. My friend said "When I removed the enctype="multipart/form-data" from the question form it worked, so I'm thinking your server is setup to reject forms with this type of encoding. It's basically used so that you can upload files as attachments for questions." My friend is not around to help me and I cannot for the life of me figure out where I might find such configuration. I guess that it is part of either Apache or PHP but tracking it down is proving to be difficult. Can anyone suggest how I may go about troubleshooting this? My Apache/PHP/MySQL installs were pretty much straight out of the box (done with RH7.3 native RPMs). Thanx heaps. |
Recent GIDBlog
Welcome to Baghdad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
| Mrs | stacy12 | C Programming Language | 14 | 05-Feb-2005 18:02 |
| [GIM] gim.h | dsmith | C Programming Language | 0 | 18-Jan-2005 08:48 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 15:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The