| | |
switching between forms
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2007
Posts: 15
Reputation:
Solved Threads: 1
iam designing a login page..while validating the login ..i have to check whether the user is ordinary user or administrator...i have to display different page for each one..i did the validation process..but how to switch to administrator.php say if the user is an administrator..can i use <form> for this..
try to use page redirection to the required page after user validation
You can try this code
You can try this code
PHP Syntax (Toggle Plain Text)
if ($user="admin") { header('Location: admin.php'); } else { header('Location: ordinary_user.php'); }
If you find this useful you can add to my reputation
![]() |
Similar Threads
- IIS .NET2 virtual directory not working (ASP.NET)
- Tutorial: The 10 Minute Linux Firewall (Getting Started and Choosing a Distro)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- Murphy's Laws (Geeks' Lounge)
- Need urgent help. Problem with SQL and win server. (Windows NT / 2000 / XP)
- How to free resources for other processes (VB.NET)
- The programming learning curve: (Geeks' Lounge)
- Virus Of Death - Help Needed! (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: Getting Radio Buttons to access Mysql Database
- Next Thread: Dynamic Declaration of Arrays Keys
Views: 503 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl customizableitems database date directory display download dynamic echo email error file files folder form format forms forum function functions google headmethod href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail malfunctioning menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





