You are here: Re: problem with POST method. « All PHP « IT news, forums, messages
Re: problem with POST method.

Posted by Cooper on 07/30/05 15:02

"J.O. Aho" <user@example.net> ha scritto nel messaggio
news:3l158iF10m6ekU3@individual.net...

> --- page1.php ---
> <html>
> <head>
> <title>page1</title>
> </head>
> <body>
> <?PHP
> $variabile1 = "contenuto";
> $variabile2 = "ende";
> ?>
> <form action="page2.php" method="post">
> <input type="hidden" name="miavariabile" value="<?PHP echo $variabile1;
> ?>">
> <input type="submit" value="<?PHP echo $variabile1; ?>">
> </form>
> <br>
> <form action="page2.php" method="post">
> <input type="hidden" name="miavariabile" value="<?PHP echo $variabile2;
> ?>">
> <input type="submit" value="<?PHP echo $variabile2; ?>">
> </form>
> <body>
> </html>
> --- eof --
>
> --- page2.php ---
> <html>
> <head>
> <?PHP $myvar = $_POST["miavariabile"]; ?>
> <title>page2 - <?PHP echo $myvar; ?></title>
> </head>
> <body>
> The option chosen by the user was <?PHP echo $myvar; ?>
> </body>
> </html>
> --- eof ---
>
>
> ???
>

No sorry :( i don't want that value of $variabile1 and $variabile2 are
displayed on html code; if possible, i prefer to write directy on header
this values and re-call it after reload page with $_POST.
Shortly, i prefer to bypass the form, right?
Thank you for you fast respost :)
Cooper.

--
BlueWare WebStudio
[web:] http://www.blueware.it
[msn:] cooper@blueware.it
[icq:] 146781935

 

Navigation:

[Reply to this 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

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