Jump to content

simple ?


DrTrans

Recommended Posts

Sorry to bother you with this. but its been forever since ive coded php and i know its something simple just cant think of it

 

 

When id o my login process im setting $loggedin=="1";

 

im creating a logout button

 

print "      <p align=\"center\"><b><font size=\"4\"><a href=\"logout.php\">LOGOUT</font></b></td>\n";

print "    </tr>\n";

 

 

in logout.php i have:

<?php

 

/**

* @author

* @copyright 2009

*/

logoutprocess();

 

function logoutprocess() {

if ($loggedin=="1") {

print "<HTML> You have successfully logged out as $dbuser\n";

$loggedin=="0";

}

}

 

?>

 

 

I knokw im doing this wrong...... Basically what i want to do is be able to call logoutprocess(); and make it do whats in the function.

 

Thanks

DrTrans

Link to comment
https://forums.phpfreaks.com/topic/167366-simple/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.