Reply to Re: how to get values of a redirected a POST request ?

Your name:

Reply:


Posted by Martie on 12/18/16 11:50

On 15 Jun 2006 08:33:17 -0700, Carl wrote...
>
>these are three files below :
>submit.html
><html>
><head>
></head>
><body>
><form action="redirect.php" method="POST" >
> <input type="text" name="value" value="test" >
> <input type="submit" >
></form>
></body>
></html>
>
>redirect.php
><?php
> header("HTTP/1.1 303 See Other");
> header("Location: post.php");
>?>
>
>post.php
><html>
><head>
></head>
><body>
> <?php
> if(isset($_REQUEST['value'])) {
> echo "the value is : <font color=RED >{$_REQUEST['value']}</font>";
> }
> ?>
></body>
></html>
>When I submit, it does redirect to 'post.php', but it doesn't show
>"test". If I change the submit.html to use the "GET" method ,and append
>"?value={$_GET['value']}" to the url int the redirect.php, it works
>well. Why the "POST" method doesn't work? I use "apache http server
>2.0.58" with "php 5" , "ms IE 6.0" and "firefox 1.5.0".
>

From my understanding the GET method passes the form data information along in
the web address. The POST method is a bit more transparent and may not carry
over when you're changing destination addresses. Using the GET method you can
also modify the URL to sent whatever form fields you needed to.

Martie
--
Newsguy Bandwidth Blowout June-29-2006
Unlimited downloads all day long
http://newsguy.com/nolimits.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация