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
[Back to original message]
|