RE: Another way to send variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: R B [mailto:rbpphp@xxxxxxxxx]
> Sent: Friday, June 13, 2008 4:50 PM
> To: PHP List
> Subject:  Another way to send variables
> 
> Hello.
> 
> I have this script (script1.php):
> 
> <?php
>  $a = "Hello";
>  header("Location: script2.php");
> ?>
> 
> I need to send the $a variable to script2.php, but i don´t want to send
> it
> in the url.
> 
> Is there another method?
> 
> Maybe with another header instruction without putting in the url?
> 
> Thank you.

Well, you can use POST instead of GET. If you're trying to hide it from laymen, this is fine. If you're trying to hide it altogether, it's still visible for people who know where to look.

HTH,


Todd Boyd
Web Programmer




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux