/ Forside / Teknologi / Udvikling / PHP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
PHP
#NavnPoint
rfh 3959
natmaden 3372
poul_from 3310
funbreak 2700
stone47 2230
Jin2k 1960
Angband 1743
Bjerner 1249
refi 1185
10  Interkril.. 1146
Can't process <FORM ENCTYPE="multipart/for~
Fra : Flemming Christensen


Dato : 19-02-01 08:10

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




 
 
Robert Wessels (19-02-2001)
Kommentar
Fra : Robert Wessels


Dato : 19-02-01 11:36

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

Flemming Christensen (19-02-2001)
Kommentar
Fra : Flemming Christensen


Dato : 19-02-01 23:21

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



Flemming Christensen (20-02-2001)
Kommentar
Fra : Flemming Christensen


Dato : 20-02-01 01:52

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
>
>



Johan (22-02-2001)
Kommentar
Fra : Johan


Dato : 22-02-01 09:58

> ---------------------------------
> $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 ??

There is nothing wrong?!

wbr

Johan



Flemming Christensen (23-02-2001)
Kommentar
Fra : Flemming Christensen


Dato : 23-02-01 02:22

Nothing wrong ??? Sure there is.
The variable $task should be = "update" instead a carrige return sequens
(ascii 13,10) has been inserted in front of the text "<CR>update"

best regards

Flemming

"Johan" <webmaster@ru94.dk> wrote in message
news:pw4l6.29737$2w6.460412@twister.sunsite.dk...
> > ---------------------------------
> > $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 ??
>
> There is nothing wrong?!
>
> wbr
>
> Johan
>
>



Steinn E. Sigurðarso~ (07-04-2001)
Kommentar
Fra : Steinn E. Sigurðarso~


Dato : 07-04-01 14:14

Hmm, I have been programming in php, for some time now, and I know that php
has many ways of doing things, but the way you are handling those strings is
very unfamiliar to me, perhaps you should try another way of doing this? And
excuse me for asking why use "#" ??

regards,
Steinn

"Flemming Christensen" <flemming.no.spam.@curlingcity.dk> wrote in message
news:974duc$2tos$1@news.cybercity.dk...
> Nothing wrong ??? Sure there is.
> The variable $task should be = "update" instead a carrige return sequens
> (ascii 13,10) has been inserted in front of the text "<CR>update"
>
> best regards
>
> Flemming
>
> "Johan" <webmaster@ru94.dk> wrote in message
> news:pw4l6.29737$2w6.460412@twister.sunsite.dk...
> > > ---------------------------------
> > > $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 ??
> >
> > There is nothing wrong?!
> >
> > wbr
> >
> > Johan
> >
> >
>
>



Søg
Reklame
Statistik
Spørgsmål : 177557
Tips : 31968
Nyheder : 719565
Indlæg : 6408868
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste