| | |
problem in header include
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
PHP Syntax (Toggle Plain Text)
<?php session_start(); if(!isset($_SESSION['un'])) { header('Location: web_login.html'); exit(); } else { ?> <html> <body> <?php print "<table align='center'><tr><td>Thank u</td></tr>"; echo $_SESSION['un']; print "<tr><td><a href='http://www.examples.com/fram.php'>View Order</a></td></tr>"; print "<tr><ta><a href='http://www.examples.com/web_job.php'>Search </a></td></tr>"; print "</table>"; } ?> </body> </html>
when i execute this code even though my $_SESSION['un'] is present in the database it's showing the web_login page.else is not working.any error in header include code.
then it simply means that $_SESSION['un'] is not existing.Where does this session comes from anyway?
![]() |
Similar Threads
- Problem declaring class object array (C++)
- Using Obsolete Binding Problem (C++)
- Working with header files ??? (C)
- "Cannot Open Include File" MS Visual C++ error (C++)
- C variables run time problem (C)
- Problem with MSVC++ and DX (C++)
- MERGED: Deleting duplicates in an array (plz help me out!!!!!!!) (C)
- Ideas needed for problem with trailing whitespaces (C++)
- problem in creating a rectangle at a angle (C++)
Other Threads in the PHP Forum
- Previous Thread: list box
- Next Thread: online music application
| Thread Tools | Search this Thread |
5.2.10 action address ajax apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display domain dynamic echo email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image include insert integration ip java javascript joomla limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop paypal pdf php popup problem query radio random record recursion regex remote script search security server sessions sms soap sockets source space sql syntax system table tutorial update upload url validator variable video web xml youtube






