PHP Classes

File: example/example1/example1.php

Recommend this page to a friend!
  Classes of amir hoseinian   Securify   example/example1/example1.php   Download  
File: example/example1/example1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Securify
Generate passwords replacing random characters
Author: By
Last change: Update of example/example1/example1.php
Date: 11 months ago
Size: 961 bytes
 

Contents

Class file image Download
<html>
<head>
    <title>example 1 securify user input text</title>
    <style type="text/css">
    .bar{
        background: green;
        height: 20px;
    }
    table{
       
    }
    </style>
</head>
<body>

    <table border="1px">
        <tr>
            <th>securified text</th>
            <th>securifing bar</th>
            <th>securifing percent</th>
        </tr>
        <?php
           
if(isset($_POST['string']) && $_POST['string']){
                require_once(
"../../Securify.php");
               
$str = $_POST['string'];
               
$securify = new Securify;
                for(
$i = 0; $i <= 100; $i+=10):
               
?>
<tr>
                        <td><?php echo $securify($str,$i) ?></td>
                        <td>
                            <div class="bar" style="width:<?php echo $i."px" ?>"></div>
                        </td>
                        <td><?php echo $i ?>%</td>
                    </tr>
                <?php
               
endfor;
            }
       
?>
</table>
    <form action="" method="post">
        <input type="text" name="string" value="<?php echo isset($_POST["string"])?$_POST["string"]:""; ?>">
        <input type="submit" value="submit new text for securifing" >
    </form>
</body>
</html>