| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| Barru. | Redirecting pages OK, on my page it checks if the user is logged in, and there are 3 possible outcomes, if the user is not logged in it should redirect them to nologin.php if they have an invalid username/password they should be redirected to badlogin.php and if the username and password are correct it should leave them on that page. heres my current code but i cant find out how to redirect.: PHP Code:
__________________ |
| |
| | #3 (permalink) |
| NPQ's PA, Slave, and On Call Coder Technical Services | PHP Code:
__________________ |
| |
| | #4 (permalink) |
| NamePros Member | can shorten that I think :-/ Just a small thing just to keep you from repeating things PHP Code:
__________________ I wonder... |
| |
| | #5 (permalink) |
| Eating Pie | Another way of doing this insted of having 3 pages would be just to include error displying in the main one so PHP Code: and index.php?errorvariableofchoosing=2 Best of luck!
__________________ I feel old. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| From the horse's mouth: Optimization tips! | IAmAllanShore | Google Adsense | 2 | 06-08-2005 09:39 PM |
| Good Article: An SEO Checklist | Ferman | Search Engines | 2 | 05-28-2005 10:51 AM |
| appraise please | Complete Hostings | Domain Appraisals | 2 | 01-19-2005 03:03 PM |
| Doorway Pages - advice needed | Tjobbe | Web Design Discussion | 5 | 09-27-2004 10:17 AM |