Re: How to pass on a variable with a page request
| From: | Ignacio Vazquez-Abrams | Date: | Tue, 21 Nov 2000 19:28:17 +0000 |
| Subject: | Re: How to pass on a variable with a page request | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26497@lists.php.net to get a copy of this message | ||
On Tue, 21 Nov 2000, Bruno Tersago wrote:
> Hi everyone,
>
> I'm a newbie to PHP and I already ran into trouble after the first test. I
> was following the article written by Kevin Yank on Webmasterbase.
>
> When I want to pass along a variable via a page request, things go wrong:
> In the HTML file I write:
>
> <a href="click.php?name=Bruno"> Hi , my name is Bruno </a>
>
> In the PHP file, I only see
>
> Welcome, !
>
> whereas I expected to see the name appear (invoked by $name).
> I can see it in the URL but not in the page.
>
> Any ideas why?
> Oh yes, I use SUSE Linux, Apache 1.3 and PHP4. So far no complaints during
> installation.
>
> -- Bruno
>
Is register_globals on in php.ini? Does using $HTTP_GET_VARS["name"] work?
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>