note 17051 deleted from language.variables by philip

From: Date: Fri, 30 Nov 2001 22:44:00 +0000
Subject: note 17051 deleted from language.variables by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21498@lists.php.net to get a copy of this message
I made this code myself. It's basic purpose is to get the username and password and then transfer those to two "local" variabes. The local varibles then are used in links and so forth. There must be a better way to do this, so if you know how, please reply or e-mail me. <? $localu = $username; $localp = $password; if($vp == ""): { $vp = "no"; } endif; if($vp == "no"): { echo "<a href=login.php?vp=yes&username=$localu&password=$localp>View Password Entered</a><br><br>"; } endif; if($vp == "yes"): { echo "<a href=login.php?vp=no&username=$localu&password=$localp>Hide Password Entered</a><br><br>"; } endif; ?> <? if($vp == "yes"): { echo "Password Entered: <i>$password</i>"; echo "<br><br>"; } endif; if($vp == "no"): { echo ""; } endif; ?>

« previous php.notes (#21498) next »