if anyone knows of a way to get php to update content in another frame on the page please tell me, or do i need to use some other language
Sessions and Frames
Moderator: General Moderators
Sessions and Frames
I created a login and logout script for my website. on the header of the page i put a login and logout link. it is supposed to change when you login or logout. it does not work. if you would like to see it, go to troop613.com.
if anyone knows of a way to get php to update content in another frame on the page please tell me, or do i need to use some other language
?
if anyone knows of a way to get php to update content in another frame on the page please tell me, or do i need to use some other language
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
here try using something like this in your login/logout part
just update the url part and add it into your script where it should go and might want to change the user_name to what you have as for the user_name part..
CrazyPHPMan
Code: Select all
<?php
if ($_SESSION['user_name'] {
echo '<a href="url">Logout</a><br>';
}else{
echo '<a href="url">Login</a>';
}
?>CrazyPHPMan
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
-
CrazyPHPMan
- Forum Newbie
- Posts: 12
- Joined: Sat Aug 12, 2006 4:14 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA