This is a discussion on "Variables!!" within the PHP Forum section. This forum, and the thread "Variables!! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Variables!!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Variables!!
Hello
I am trying to pass variables accross several pages so as i can access ALL the variables in a final script. How is this achieved? Any suggestions please? ThankYou |
|
|
|
||||
|
Re: Variables!!
you could either use global variables, session variables, or pass them using the GET method with a query string in the URL
|
|
|||
|
Re: Variables!!
im pretty sure you could use external php files but that would probably make things more complicated. for example:
and then go from there |
|
|||
|
Re: Variables!!
Theres a reason global variables were invented
|
|
|||
|
Re: Variables!!
lol.... i thought of another way though too.
This is your document with the variables you want to use. Save it titled "whatever.inc"
|
|
|||
|
Re: Variables!!
Yes. Global variables are the way to go. You can also store the variables and include them in all your PHP files.
|
![]() |
| Tags |
| variables |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to use variables that pulls in another .php | ragnar21583 | PHP Forum | 2 | Apr 26th, 2007 17:53 |
| PhP variables added to XML | mavedog21 | PHP Forum | 0 | Nov 28th, 2006 16:09 |
| Session variables | ideleon | PHP Forum | 2 | Feb 7th, 2006 08:04 |
| Get URL and use variables | JamieH | PHP Forum | 2 | Jan 1st, 2006 03:13 |
| Session Variables | ekendricks | Classic ASP | 7 | Aug 26th, 2003 10:42 |