phptest-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phptest-users] Re: add question issue


From: dj resonance
Subject: Re: [Phptest-users] Re: add question issue
Date: Wed, 17 Jul 2002 12:20:20 -0700 (PDT)

Hi Kathy, 

If you wanted, we could troubleshoot the problem
further.  On the add_question.php page, try putting
the following statements after the

    if (isset($HTTP_POST_VARS['submit'])) {  

statement:

print_r($HTTP_POST_VARS) . "<br>";
print_r($HTTP_POST_FILES);
die();

If you then run the page after submitting a question
and view the source, you'll get a nice formatted view
of everything the browser passed to the page, and you
can paste that into an email so I can examine it.  I
suspect that it might be passing an unrecognized mime
type or something that is causing phptest to barf. 
I've read the php docs regarding the HTTP_POST_FILES
variable and apparently there are a few different ways
that will specify whether a file was actually uploaded
or not.  I tested for two of them, but maybe there's a
third lurking somewhere.  I know at least with IE I
experience an intermittent problem where the $submit
variable will not get submitted to any of the add
pages, so I'm unable to do any adding or editing.  The
same thing with mozilla will work fine though. 
Probably buggy code in phptest somewhere but damned if
I can figure out what's causing it.

Thanks,
Brandon




--- Kathleen Ferraro <address@hidden> wrote:
> Hi John,
> 
> Thanks for following up. After quite a bit of
> testing, I've come to 
> suspect that this is a
> browser issue primarily. I had been using OmniWeb, a
> really nice looking 
> browser
> that runs under Mac OS X. I tried adding a question
> using Internet 
> Explorer 5.1 for the
> Mac and had no problem.
> 
> Just to clarify, the problem is not with uploading
> an image. The problem 
> was that
> in OmniWeb, I found the following:
> 
>       If I did not upload an image, a got the "unknown
> file upload 
> message and
>       my question text was not loaded.
> 
>       If I did upload an image, everything (image and
> text) was loaded twice.
> 
> I suppose I should pass this on to the folks at
> OMNI. Have not tried it 
> systematically
> with any of the other browsers I experiement with.
> 
> Best,
> 
> Kathie
> 
> On Wednesday, July 17, 2002, at 08:46 AM, John Lacey
> wrote:
> 
> > Hi Kathie,
> >
> > I happened to run across your post and was
> wondering if you were still
> > experiencing a problem.  If so, just send along
> some additional info 
> > that
> > may help, such as the file type (.gif, .jpg, etc)
> and file size.
> >
> > thanks,
> > John
> >
> >
> >
> >
> >
> > There appears to be some conditional statement
> missing or misplaced in
> > add_multiple.php and add_truefalse.php, causing
> both "INSERT INTO
> > questions" queries to fire if an image is uploaded
> and neither to fire
> > if an image is not uploaded.
> >
> >
> >   If I enter question text and don't upload an
> image, I get the message
> > "Unknown file upload error"; if I enter text and
> upload an image, the
> > text and image are loaded twice. I've been sorting
> through the code but
> > haven't been able to get it to work yet. If
> someone has already fixed
> > it, can you please post the corrected versions of
> these two files.
> >
> >
> > Everything else is working very nicely.
> >
> >
> > Best,
> >
> >
> > Kathie
> >
> >
> >
> >
> >
>
--------------------------------------------------------------------------------------------------
> Kathleen A. Ferraro                                 
>        |     
> address@hidden
> Senior Curriculum Specialist                        
> |     412.648.1099 
> (direct)
> Office of Medical Education (Scaife M211) |    
> 412.648.8714 (main 
> office)
> University of Pittsburgh                            
>       |     
> 412.958.0057 (pager)
> Pittsburgh, PA 15261 USA                            
> |     412.383.7477 
> (fax)
>
---------------------------------------------------------------------------------------------------
> I am pleased that history recognizes the first to
> invent something, but
> I am more concerned with the first person to make it
> work.
>                     --Commodore Grace Murray Hopper,
> Computing Pioneer
> 
> 
> _______________________________________________
> Phptest-users mailing list
> address@hidden
>
http://mail.freesoftware.fsf.org/mailman/listinfo/phptest-users


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]