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
How do I return the user to the main page?
Old 12-09-2005, 04:34 AM How do I return the user to the main page?
Average Talker

Posts: 28
Location: Australia
Trades: 0
I have the following main page:

PHP Code:
<?
if(file_get_contents("lang.tmp")=="")
{
header("Location: splash.php"); 
exit();
}
?>
<html>
<head>
<meta name="author" content="Glyndwr D. Bartlett">
<title>Kortge Cutlers</title>
<frameset rows="140,*" marginwidth="0" marginheight="0" frameborder="0" border="0" borderwidth="0">
<frame name="head" src="head.php" scrolling=no>
<frameset cols="225,*,225" marginwidth="0" marginheight="0" frameborder="0" border="0" borderwidth="0">
<frame name="navi" src="navi.php" scrolling=auto>
<frame name="content" src="start.php" marginwidth=20>
<frame name="login" src="login.php" marginwidth=20 scrolling=no>
</frameset>
</frameset>
</head>
<body bgcolor=#ffffff>
</body>
</html>
"login.php" displyes the login screen on right of the screen. This then calls "checkuserid.php". If Reset is selected in "login.php" then "checkuserid.php" performs "header("Location: index.php)" to return the user to the main page.

The problem is that the "index.php" page is displayed the the frame on the right of the "login.php" page. I want to return the user to the original page so they can try to login again or select other functions from the index.php page.

What is the best solution?

Regards,

Glyn
GlyndwrBartlett is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-15-2005, 12:04 AM
lothop's Avatar
Ultra Talker

Posts: 303
Trades: 0
Umm, I dunno if this will help, but here goes

HTML Code:
target="_parent"
It's hard to work out a problem from the code you have posted. Hope this works though
__________________
Websites Created;
warscope.com
ratepayers.org.nz
lothop is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How do I return the user to the main page?
 

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.49507 seconds with 12 queries