Re: Re: Passing variable to a page in a frameset
| From: | Dan Shirah | Date: | Fri, 15 Aug 2008 19:47:25 +0000 |
| Subject: | Re: Re: Passing variable to a page in a frameset | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278195@lists.php.net to get a copy of this message | ||
>
> GET should work too. Do you know of any examples anywhere online for this?
>> My brain shuts off at the thought of how I'd do that.
>>
>> - jody
>
>
When you GET a value you are retrieving a passed value that appears in the
address bar:
Example
http://www.mysite.com?name=joe
www.mysite.com is the website
?name=joe is the value being passed by GET
To put this value into a PHP variable you would simply do:
<?php
$name = $_GET['name'];
?> <http://www.google.com/search?hl=en&q=encrypt+javascript>