1
DeeKay
Variables in Modules
  • 2004/1/24 1:41

  • DeeKay

  • Just popping in

  • Posts: 3

  • Since: 2004/1/24


Hi!
I am busy with a module and i can't figure out how i can pass variables from one page to another. with this code
<a href="page2.php?name=test">page 2a>

it doesn't work. the variable $name is empty on page2.php
why is that? what can i do to solve my problem. thanks

2
Dave_L
Re: Variables in Modules
  • 2004/1/24 2:08

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


In page2.php, the variable should be accessed as $_GET['name']. For example:

$name $_GET['name'];


This happens automatically if the PHP configuration parameter register_globals is on, but that can be insecure, so it's better to use $_GET (or $_POST) explicitly as above.

3
DeeKay
Re: Variables in Modules
  • 2004/1/24 18:34

  • DeeKay

  • Just popping in

  • Posts: 3

  • Since: 2004/1/24


that easy! thanks a lot!

Login

Who's Online

147 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 147


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jun 30
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits