GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Aug-2005, 04:40
MisterJingo MisterJingo is offline
New Member
 
Join Date: Aug 2005
Posts: 1
MisterJingo is on a distinguished road

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 GIDBlogWelcome to Baghdad by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 21:18.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.