| | |
please help me in session in php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
php Syntax (Toggle Plain Text)
<?php //page1.php session_start(); $_SESSION['number'] = 10; header("Location: page2.php"); ?>
php Syntax (Toggle Plain Text)
<?php //page2.php session_start(); echo"number= ".$_SESSION['number']; ?>
•
•
•
•
If you want your script to work regardless of register_globals, you need to instead use the $_SESSION array as $_SESSION entries are automatically registered. If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
Similar Threads
- syntax error, unexpected $end in ndex.php on line 127 (PHP)
- Need help with session in php..... (PHP)
- Session problem (PHP)
- Object Oriented PHP Question (PHP)
- new to PHP and need help (PHP)
- Session Login Problem (PHP)
- Desperate Again Please HELP PHP (PHP)
- Session (PHP)
Other Threads in the PHP Forum
- Previous Thread: Image Help
- Next Thread: PHP code
Views: 555 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class clean cms code countingeverycharactersfromastring cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail match menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions simple sms soap source space spam speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube






