Show sourcecode

The following files exists in this folder. Click to view.

test/incl/test/

!kmom03_getform.php
aside.php
aside.php~
kmom02_changestyle.php
kmom02_changestyle.php~
kmom03_default.php
kmom03_default.php~
kmom03_encryptpassword.php
kmom03_encryptpassword.php~
kmom03_get.php
kmom03_get.php~
kmom03_getform.php
kmom03_getform.php~
kmom03_postform.php
kmom03_postform.php~
kmom03_server.php
kmom03_server.php~
kmom03_session.php
kmom03_session.php~
kmom03_sessionchange.php
kmom03_sessionchange.php~
kmom03_sessiondestroy.php
kmom03_sessiondestroy.php~
kmom03_setpagestyle.php~
kmom03_validate.php
kmom03_validate.php~
sql.php

kmom03_encryptpassword.php

1 lines UTF-8 Unix (LF)
1
        <h1>Form that encrypts a password</h1>
         <form method="post"> <!-- action="?"> The action attribute is no longer needed in HTML5 --> <!-- Ändrade från "get" i getform.php till "post" -->
          <fieldset>
           <legend>Encrypt a password</legend>
           <p>
            <label for="input1">Password:</label><br>
            <input id="input1" class="text" type="text" name="password">
           </p>
           <p>
            <input type="submit" name="doEncrypt" value="Encrypt">
            <input type="submit" name="doClear" value="Clear">
          </p>
         </fieldset>
        </form>

        <?php
        if(isset($_POST['password']) & isset($_POST['doEncrypt']))
        {
                echo "<p>The encrypted password is: " . userPassword($_POST['password']) . "</p>";
        }
        ?>