Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Page referring not working (brought to a page can't be found)!
Old 09-02-2010, 11:55 PM Page referring not working (brought to a page can't be found)!
Junior Talker

Posts: 3
Trades: 0
Hey!

I am having problems with my site when a user clicks the submit button for any form. When it is clicked it brings you to a page that doesn't exist (not found). Here is a tidbit of code:

PHP Code:
/* Set referrer page */
if(isset($_SESSION['url'])){
$this->referrer = $_SESSION['url'];
}else{
$this->referrer = "/";
}

/* Set current url */
$this->url = $_SESSION['url'] = $_SERVER['PHP_SELF'];
}

This is in a process php file. It is supposed to process the forms. Referrer is a variable that is used in other pages (like the login/register/forgotpass/admin php scripts) to bring the user back for an error/incorrect username or password or just bring the user back to the page when logging in. However you can't carry out the process since it brings you to a page that can't be found.

I checked the mysql data base and it is going through because it showed me registered on there.

Oh and if this helps, this is jpmaster77's advanced login script. Maybe someone knows what it is.

Thanks.
zachatk is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Page referring not working (brought to a page can't be found)!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13675 seconds with 12 queries