Re: problems with POST
"Wolfgang Forstmeier" <wolfgang.forst meier@gmx.de> wrote in message
news:dmfqss$qc4 $02$1@news.t-online.com...[color=blue]
>
>
> moriman wrote:[color=green]
> > "Wolfgang Forstmeier" <wolfgang.forst meier@gmx.de> wrote in message
> > news:dmejl5$ps3 $1@news.mch.sbs .de...
> >[color=darkred]
> >>
> >>moriman wrote:
> >>
> >>>"Juliette" <jrf_no_spam@jo keaday.net> wrote in message
> >>>news:438a9e1 c$0$64688$dbd45 001@news.wanado o.nl...
> >>>
> >>>>moriman wrote:
> >>>>
> >>>>>wow, thx for the *very* quick reply ;-)
> >>>>>
> >>>>>tried changing the
> >>>>>echo "\$p = $p<br><br>";
> >>>>>
> >>>>>to
> >>>>>
> >>>>>echo "\$p = " . $_POST['p'] . "<br><br>";
> >>>>>
> >>>>>but still not working :(
> >>>>>
> >>>>>mori
> >>>>>
> >>>>>"Gordon Burditt" <gordonb.ari4j@ burditt.org> wrote in message
> >>>>>news:11ok7 r8qgjmg89a@corp .supernews.com. ..
> >>>>>
> >>>>>
> >>>>>>>The script below *used* to work. I have only just set up a
> >>>>>>>server , PHP etc again on my Win98 system and now it doesn't?
> >>>>>>
> >>>>>>A variable passed from HTML by the POST method is $_POST['r'] or
> >>>>>>$_POST['p'], *not* $r or $p. (Also see $_GET for variables
> >>>>>>passed by the GET method). Fix your script. Do not turn
> >>>>>>on "register_globa ls".
> >>>>>>
> >>>>>>Gordon L. Burditt
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>On first loading this page, you would have
> >>>>>>>
> >>>>>>>$p =
> >>>>>>>
> >>>>>>>and the button image below it.
> >>>>>>>On clicking the button the same page would reload but pass the[/color]
> >
> > hidden
> >[color=darkred]
> >>>>>values
> >>>>>
> >>>>>
> >>>>>>>(r=w & p=f)
> >>>>>>>so that the first line of the page would then have
> >>>>>>>
> >>>>>>>$p = f
> >>>>>>>
> >>>>>>>This no longer works???
> >>>>>>>
> >>>>>>><?php
> >>>>>>>echo "<html><bod y>";
> >>>>>>>echo "\$p = $p<br><br>"; //###
> >>>>>>>$str = <<<HTM
> >>>>>>><head>
> >>>>>>></head>
> >>>>>>><body>
> >>>>>>><form action="" method="post">
> >>>>>>><input type="hidden" name="r" value="w">
> >>>>>>><input type="hidden" name="p" value="f">
> >>>>>>><input type="image" src="http://home/images/faq-up.gif" border="0"
> >>>>>>>height=" 22" width="77">
> >>>>>>></form>
> >>>>>>></body>
> >>>>>>></html>
> >>>>>>>HTM;
> >>>>>>>echo $str;
> >>>>>>>?>
> >>>>>>>
> >>>>>>>
> >>>>>>>on printing the $_ENV variables along with the the above script I[/color]
> >
> > find
> >[color=darkred]
> >>>>>the
> >>>>>
> >>>>>
> >>>>>>>followin g :
> >>>>>>>
> >>>>>>>QUERY_ME THOD POST
> >>>>>>>REQUEST_ METHOD POST
> >>>>>>>FORM_P f
> >>>>>>>FORM_R w
> >>>>>>>
> >>>>>>>Is there something I haven't enabled in my
> >>>>>>>setup of PHP that is stopping this from working now?
> >>>>>>>
> >>>>>>>Or has something changed with PHP, so that I have to do this[/color][/color][/color]
another[color=blue][color=green][color=darkred]
> >>>
> >>>way?
> >>>
> >>>>>>>many thanks
> >>>>>>>
> >>>>>>>mori
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>Try:
> >>>>
> >>>>echo "\$p = " . $HTTP_POST_VARS['p'] . "<br><br>";
> >>>
> >>>nope, doesn't work either :(
> >>>
> >>>
> >>
> >>This will work, you have to set up an submit button
> >>(javascript or nativ html to send your form data)
> >>
> >>If you would like to have an image you should prefer JavaScript.
> >>If a simple HTML - Button is enougth try the simple Submit Button like
> >>in my example.
> >>Have Fun...
> >>
> >><?php
> >>echo "<html>";
> >>echo "\$p = ".$_POST['p']."<br><br>"; //###
> >>$str = <<<HTM
> >><head>
> >></head>
> >><body>
> >><form action="" method="post">
> >> <input type="hidden" name="r" value="w">
> >> <input type="hidden" name="p" value="f">
> >> <input type="submit">
> >></form>
> >></body>
> >></html>
> >>HTM;
> >>echo $str;
> >>?>[/color]
> >
> >
> > Did you try this wolfgang? I did and it doesn't work for me?
> >
> >[/color]
> for me this has worked perfekt ..[/color]
This is where I think the problem lies, in that there may be something in
php.ini (or elsewhere) which isn't enabled that is preventing this working
for me.
Just can't figure out what or where :(
thx
"Wolfgang Forstmeier" <wolfgang.forst meier@gmx.de> wrote in message
news:dmfqss$qc4 $02$1@news.t-online.com...[color=blue]
>
>
> moriman wrote:[color=green]
> > "Wolfgang Forstmeier" <wolfgang.forst meier@gmx.de> wrote in message
> > news:dmejl5$ps3 $1@news.mch.sbs .de...
> >[color=darkred]
> >>
> >>moriman wrote:
> >>
> >>>"Juliette" <jrf_no_spam@jo keaday.net> wrote in message
> >>>news:438a9e1 c$0$64688$dbd45 001@news.wanado o.nl...
> >>>
> >>>>moriman wrote:
> >>>>
> >>>>>wow, thx for the *very* quick reply ;-)
> >>>>>
> >>>>>tried changing the
> >>>>>echo "\$p = $p<br><br>";
> >>>>>
> >>>>>to
> >>>>>
> >>>>>echo "\$p = " . $_POST['p'] . "<br><br>";
> >>>>>
> >>>>>but still not working :(
> >>>>>
> >>>>>mori
> >>>>>
> >>>>>"Gordon Burditt" <gordonb.ari4j@ burditt.org> wrote in message
> >>>>>news:11ok7 r8qgjmg89a@corp .supernews.com. ..
> >>>>>
> >>>>>
> >>>>>>>The script below *used* to work. I have only just set up a
> >>>>>>>server , PHP etc again on my Win98 system and now it doesn't?
> >>>>>>
> >>>>>>A variable passed from HTML by the POST method is $_POST['r'] or
> >>>>>>$_POST['p'], *not* $r or $p. (Also see $_GET for variables
> >>>>>>passed by the GET method). Fix your script. Do not turn
> >>>>>>on "register_globa ls".
> >>>>>>
> >>>>>>Gordon L. Burditt
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>On first loading this page, you would have
> >>>>>>>
> >>>>>>>$p =
> >>>>>>>
> >>>>>>>and the button image below it.
> >>>>>>>On clicking the button the same page would reload but pass the[/color]
> >
> > hidden
> >[color=darkred]
> >>>>>values
> >>>>>
> >>>>>
> >>>>>>>(r=w & p=f)
> >>>>>>>so that the first line of the page would then have
> >>>>>>>
> >>>>>>>$p = f
> >>>>>>>
> >>>>>>>This no longer works???
> >>>>>>>
> >>>>>>><?php
> >>>>>>>echo "<html><bod y>";
> >>>>>>>echo "\$p = $p<br><br>"; //###
> >>>>>>>$str = <<<HTM
> >>>>>>><head>
> >>>>>>></head>
> >>>>>>><body>
> >>>>>>><form action="" method="post">
> >>>>>>><input type="hidden" name="r" value="w">
> >>>>>>><input type="hidden" name="p" value="f">
> >>>>>>><input type="image" src="http://home/images/faq-up.gif" border="0"
> >>>>>>>height=" 22" width="77">
> >>>>>>></form>
> >>>>>>></body>
> >>>>>>></html>
> >>>>>>>HTM;
> >>>>>>>echo $str;
> >>>>>>>?>
> >>>>>>>
> >>>>>>>
> >>>>>>>on printing the $_ENV variables along with the the above script I[/color]
> >
> > find
> >[color=darkred]
> >>>>>the
> >>>>>
> >>>>>
> >>>>>>>followin g :
> >>>>>>>
> >>>>>>>QUERY_ME THOD POST
> >>>>>>>REQUEST_ METHOD POST
> >>>>>>>FORM_P f
> >>>>>>>FORM_R w
> >>>>>>>
> >>>>>>>Is there something I haven't enabled in my
> >>>>>>>setup of PHP that is stopping this from working now?
> >>>>>>>
> >>>>>>>Or has something changed with PHP, so that I have to do this[/color][/color][/color]
another[color=blue][color=green][color=darkred]
> >>>
> >>>way?
> >>>
> >>>>>>>many thanks
> >>>>>>>
> >>>>>>>mori
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>Try:
> >>>>
> >>>>echo "\$p = " . $HTTP_POST_VARS['p'] . "<br><br>";
> >>>
> >>>nope, doesn't work either :(
> >>>
> >>>
> >>
> >>This will work, you have to set up an submit button
> >>(javascript or nativ html to send your form data)
> >>
> >>If you would like to have an image you should prefer JavaScript.
> >>If a simple HTML - Button is enougth try the simple Submit Button like
> >>in my example.
> >>Have Fun...
> >>
> >><?php
> >>echo "<html>";
> >>echo "\$p = ".$_POST['p']."<br><br>"; //###
> >>$str = <<<HTM
> >><head>
> >></head>
> >><body>
> >><form action="" method="post">
> >> <input type="hidden" name="r" value="w">
> >> <input type="hidden" name="p" value="f">
> >> <input type="submit">
> >></form>
> >></body>
> >></html>
> >>HTM;
> >>echo $str;
> >>?>[/color]
> >
> >
> > Did you try this wolfgang? I did and it doesn't work for me?
> >
> >[/color]
> for me this has worked perfekt ..[/color]
This is where I think the problem lies, in that there may be something in
php.ini (or elsewhere) which isn't enabled that is preventing this working
for me.
Just can't figure out what or where :(
thx
Comment