Current location: Hot Scripts Forums » Programming Languages » PHP » Find out current location


Find out current location

Reply
  #1 (permalink)  
Old 06-25-06, 03:41 PM
zitwep zitwep is offline
Wannabe Coder
 
Join Date: Aug 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Find out current location

Hi,

I am having a bit of troubles on a login. I have to login forms which are processed by the same php file. But on the block login a hidden input says public, and on one login in a contentarea a hidden input says internal. So what I want to do is send users login in in a content area to the internal area, and the ones using the block to login back to the site they were browsing. I put a if else conditional statement to manage that, when the hidden input is public now, you are taken to the internal area by a refresh. But now the real problem, what do I put in the if conditional statement if the hidden input is public, how do i find out what site the user came from to send back to?

I hope you got what I mean

Best Regards
zitwep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-25-06, 04:43 PM
flann flann is offline
Newbie Coder
 
Join Date: Jun 2006
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
HTTP_REFERER here is a link to it. http://us3.php.net/reserved.variables
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-25-06, 05:26 PM
zitwep zitwep is offline
Wannabe Coder
 
Join Date: Aug 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Yep that did it!
Thanks alot realyl apreciating it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot find KeycodeV2.dll, or invalid keycode. Please Help Me sankarb Windows .NET Programming 5 11-18-09 06:14 PM
How to find the total number of subnodes in a tree structure? subhashparayil ASP 2 03-22-06 12:44 PM
how to solve this PHP error? j14nhAo PHP 1 02-16-06 08:48 AM
php self find 8675309 PHP 1 08-31-05 07:04 AM
accessing existing ISP email with a PHP webmail script. nlancaster PHP 1 01-07-04 04:28 AM


All times are GMT -5. The time now is 06:43 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.