note 17051 added to language.variables

From: Date: Fri, 23 Nov 2001 15:29:39 +0000
Subject: note 17051 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-21205@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; ?> -- http://www.php.net/manual/en/language.variables.php http://master.php.net/manage/user-notes.php?action=edit+17051 http://master.php.net/manage/user-notes.php?action=delete+17051 http://master.php.net/manage/user-notes.php?action=reject+17051

« previous php.notes (#21205) next »