It's not only with upload forms but any form the gives me this problem.
After more testing I can conclude that somehow the form button value gets
converted with ascii code 13,10 inf front and ascii code 0 behind.
with a button name=task and value=upload
I used the following code to test the contents of the $task value the form
returns
---------------------------------
$test = "";
for ($i=0; $i<=strlen($task); $i++) {
$test .= "," . ord(substr($task,$i,1)) . ",";
}
echo "test=$test<br>\n";
---------------------------------
the result was
test=,13,,10,,117,,112,,108,,111,,97,,100,,0,
What have I done wrong in the Apache or Php configuration ??
"Flemming Christensen" <flemming.no.spam.@curlingcity.dk> wrote in message
news:96s66g$207u$1@news.cybercity.dk...
> After a little more testing it seems that the problem I get is the return
> value of the submitbutton value.
>
> an example code:
>
> <?
> echo "submitbutton=#$submitbutton#<br></n>"
> if ($submitbutton = "action") {
> ...
> ...
> exit()
> }
> >?
>
> <FORM ENCTYPE="multipart/form-data" ACTION="<? echo $PHP_SELF; ?>"
> METHOD=POST>
> .....
> <input type=submit name=submitbutton value=action>
>
>
>
> when I push the submitbutton it returns:
>
> submitbutton=# action#
>
> it seems that I get a space in front of the tekst "action" but in fact
it's
> a carrige return
> the source lists:
>
> submitbutton=#
> action#
>
> WHAT IS HAPPENING ????
>
> - Flemming Christensen
>
>
>
>
>
>
>
> "Robert Wessels" <techie@GrassAndCows.eu.org> wrote in message
> news:3A90F5F2.CD29AE40@GrassAndCows.eu.org...
> > From what file are you posting.. what does it look like.. and what does
> > the file look like that you are posting to??
> >
> > Flemming Christensen wrote:
> > >
> > > HEEEELP !!
> > > I'm using apache and php and whenever I press the submit button I just
> get
> > > the same page back .. like I just refreshed the page instead of
posting
> the
> > > information.
> > >
> > > I'm using apache 1.3.14-3 and php 4.0.4pl1-3
> > >
> > > - Flemming Christensen
> >
> > --
> >
> > Grass And Cows
> > Web Applications
> > Klimopstraat 56
> > 7552SP Hengelo
> > The Netherlands
> > T (0031) 74 250 4758
> > M (0031) 61 962 6702
> > F (0031) 20 869 4638
> > W
http://GrassAndCows.eu.org
> > E techie@GrassAndCows.eu.org
>
>