accessing variables other than form variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bugthefixer
Forum Contributor
Posts: 118
Joined: Mon Mar 22, 2004 2:35 am

accessing variables other than form variables

Post by bugthefixer »

i hav prblem with variables other then form variable in web page...how kan i acces them in the next page..n one more thing how kan i acces form variables in the same page..bcause i recently defined a textfield n i wnt to use its value in the same page i get an error that "undefined variable"...
how can i do tat..
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Re: accessing variables other than form variables

Post by JayBird »

bugthefixer wrote:i hav prblem with variables other then form variable in web page...how kan i acces them in the next page..
Use session variables - viewtopic.php?t=6521
bugthefixer wrote:n one more thing how kan i acces form variables in the same page..bcause i recently defined a textfield n i wnt to use its value in the same page i get an error that "undefined variable"...
how can i do tat..
You can't, you will need to use Javascript for that kind of thing unless you submit the page and refresh it

Mark
Post Reply