I can not get file uploads to show up when I upload a file
am 23.08.2007 05:11:56 von Jake BarnesI've a form that starts off like this:
I've a form that starts off like this:
lawrence k wrote:
> I've a form that starts off like this:
>
>
>
On Aug 22, 11:48 pm, Jerry Stuckle
> lawrence k wrote:
> > I've a form that starts off like this:
>
> >
lawrence k wrote:
> On Aug 22, 11:48 pm, Jerry Stuckle
>> lawrence k wrote:
>>> I've a form that starts off like this:
>>> back too far?
Does the HTML validate?
If the HTML is correct, it should show up in the $_POST variable. But
since it isn't, you have an HTML problem - not a PHP one.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
On Aug 23, 12:05 am, Jerry Stuckle
> lawrence k wrote:
> > On Aug 22, 11:48 pm, Jerry Stuckle
> >> lawrence k wrote:
> >>> I've a form that starts off like this:
> >>> back too far?
>
> Does the HTML validate?
>
> If the HTML is correct, it should show up in the $_POST variable. But
> since it isn't, you have an HTML problem - not a PHP one.
You can see the form here:
http://www.bluewalldev.com/secondroad/profile.php?id=5&formN ame=my_story_edit.htm
I apologize that the site is so rough. We are at an early point of
construction. The site is ultimately suppose to be an online social
network for people recovering from addiction.
On Aug 23, 12:05 am, Jerry Stuckle
> lawrence k wrote:
> > On Aug 22, 11:48 pm, Jerry Stuckle
> >> lawrence k wrote:
> >>> I've a form that starts off like this:
> >>>
On Aug 23, 12:05 am, Jerry Stuckle
> lawrence k wrote:
> > On Aug 22, 11:48 pm, Jerry Stuckle
> >> lawrence k wrote:
> >>> I've a form that starts off like this:
> >>> back too far?
>
> Does the HTML validate?
Hmm, no.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bluewalld ev.com%2Fsecondroad%2Fprofile.php%3Fid%3D5%26formName%3Dmy_s tory_edit.htm&charset=%28detect+automatically%29&doctype=Inl ine&group=0
The errors are mostly missing alt tags on the images and some li tags
used outside of ul tags. I can't see how it would effect one input in
the middle of a form, as opposed to all the inputs on a form, but I
suppose we should clean this up. It'll be next week before we get to
it, I suspect.
On Aug 23, 12:05 am, Jerry Stuckle
> lawrence k wrote:
> > On Aug 22, 11:48 pm, Jerry Stuckle
> >> lawrence k wrote:
> >>> I've a form that starts off like this:
> >>> back too far?
>
> Does the HTML validate?
>
> If the HTML is correct, it should show up in the $_POST variable. But
> since it isn't, you have an HTML problem - not a PHP one.
What's even more odd is that I'm getting the correct results in
$_FILES. The temp name of the file is there. But it doesn't show up in
$_POST. What is that about?
On Aug 23, 12:05 am, Jerry Stuckle
> lawrence k wrote:
> > On Aug 22, 11:48 pm, Jerry Stuckle
> >> lawrence k wrote:
> >>> I've a form that starts off like this:
> >>> back too far?
>
> Does the HTML validate?
>
> If the HTML is correct, it should show up in the $_POST variable. But
> since it isn't, you have an HTML problem - not a PHP one.
This is what I get if I do print_r($_FILES):
Array
(
[totalFormInputs] => Array
(
[name] => Array
(
[users] => Array
(
[5] => Array
(
[upload_file] => car_derby.jpg
)
)
)
[type] => Array
(
[users] => Array
(
[5] => Array
(
[upload_file] => image/jpeg
)
)
)
[tmp_name] => Array
(
[users] => Array
(
[5] => Array
(
[upload_file] => /tmp/phpiBxJrN
)
)
)
[error] => Array
(
[users] => Array
(
[5] => Array
(
[upload_file] => 0
)
)
)
[size] => Array
(
[users] => Array
(
[5] => Array
(
[upload_file] => 32302
)
)
)
)
)
That's what I would expect. It's bizzare, I get the right results in
$_FILES, but not in $_POST. How is that possible?
lawrence k wrote:
> This is what I get if I do print_r($_FILES):
> ...
>
> That's what I would expect. It's bizzare,
Its not bizzare. Its normal...
> I get the right results in
> $_FILES, but not in $_POST. How is that possible?
Cause youre provider has updated PHP. Older versions also send data of
$_FILES within $_POST. But its not a go idea to hold the data in 2 Points.
The manual says that usage of $_FILES is the prefered way since a long
time. If you would have looked in the manual before you write your
Postings, you come surely faster to the goal.
Ulf
--
_,
_(_p> Ulf [Kado] Kadner
\<_) Mitglied der Freizeitvögel? ;-)
^^
lawrence k wrote:
> On Aug 23, 12:05 am, Jerry Stuckle
>> lawrence k wrote:
>>> On Aug 22, 11:48 pm, Jerry Stuckle
>>>> lawrence k wrote:
>>>>> I've a form that starts off like this:
>>>>> back too far?
>>
>> Does the HTML validate?
>>
>> If the HTML is correct, it should show up in the $_POST variable. But
>> since it isn't, you have an HTML problem - not a PHP one.
>
> This is what I get if I do print_r($_FILES):
>
> Array
> (
> [totalFormInputs] => Array
> (
> [name] => Array
> (
> [users] => Array
> (
> [5] => Array
> (
> [upload_file] => car_derby.jpg
> )
>
> )
>
> )
>
> [type] => Array
> (
> [users] => Array
> (
> [5] => Array
> (
> [upload_file] => image/jpeg
> )
>
> )
>
> )
>
> [tmp_name] => Array
> (
> [users] => Array
> (
> [5] => Array
> (
> [upload_file] => /tmp/phpiBxJrN
> )
>
> )
>
> )
>
> [error] => Array
> (
> [users] => Array
> (
> [5] => Array
> (
> [upload_file] => 0
> )
>
> )
>
> )
>
> [size] => Array
> (
> [users] => Array
> (
> [5] => Array
> (
> [upload_file] => 32302
> )
>
> )
>
> )
>
> )
>
> )
>
>
>
>
> That's what I would expect. It's bizzare, I get the right results in
> $_FILES, but not in $_POST. How is that possible?
>
>
>
>
>
>
>
That's right... I shouldn't try to answer at midnight after I've been
out with the guys... :-)
Yes, it goes in the $_FILES array, not $_POST.
Once I got some sleep and looked at this again this morning, it was
obvious :-). Sorry to steer you down the wrong path.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
On Aug 23, 8:55 am, Jerry Stuckle
> lawrence k wrote:
> > On Aug 23, 12:05 am, Jerry Stuckle
> >> lawrence k wrote:
> >>> On Aug 22, 11:48 pm, Jerry Stuckle
> >>>> lawrence k wrote:
> >>>>> I've a form that starts off like this:
> >>>>>
On Sep 19, 1:14 pm, lawrence k
> On Aug 23, 8:55 am, Jerry Stuckle
>
>
>
> > lawrence k wrote:
> > > On Aug 23, 12:05 am, Jerry Stuckle
> > >> lawrence k wrote:
> > >>> On Aug 22, 11:48 pm, Jerry Stuckle
> > >>>> lawrence k wrote:
> > >>>>> I've a form that starts off like this:
> > >>>>>
lawrence k wrote:
> On Sep 19, 1:14 pm, lawrence k
>> On Aug 23, 8:55 am, Jerry Stuckle
>>
>>
>>
>>> lawrence k wrote:
>>>> On Aug 23, 12:05 am, Jerry Stuckle
>>>>> lawrence k wrote:
>>>>>> On Aug 22, 11:48 pm, Jerry Stuckle
>>>>>>> lawrence k wrote:
>>>>>>>> I've a form that starts off like this:
>>>>>>>>