PHP Classes

File: example.html

Recommend this page to a friend!
  Classes of Kind King   Word to number converter   example.html   Download  
File: example.html
Role: Example script
Content type: text/plain
Description: this is an example page. it shows an example of how to use the script
Class: Word to number converter
Encode words into numbers
Author: By
Last change:
Date: 8 years ago
Size: 1,437 bytes
 

Contents

Class file image Download
<?php
require_once("Word__.php");
    if(
$_REQUEST['word'] !=''){
       
$word = $_REQUEST['word'];
    }else{
       
$word = "EmmsDan";
    }
$Word__ = new Word__;

   
$Word__->_WordToNumber($word);
?>
<!DOCTYPE html>
<html lang= "en" >
<head>
<title> Word To Number version 1.0.0 Example </title>
<style>
    td{
    padding: 15px;
    color: #ff0;
    background: #0076cb;
    }
</style>
</head>

<body class="bg-primary">
<div class="page-header">
        <h1>
EmmsDan Projects.
        </h1>
<h4> WordToNumber Class Examples </h4>
</div>
    <table border="2" style="padding: 15px;background: #cee944;">
            <thead>
<th> Normal CodedString </th>
    <tr>
        <th>
            Word:
        </th>
        <th>
            Number:
        </th>
    </tr>
    </thead>
    <tbody>
       
    <tr class='success'>

        <td>
            <?php echo $Word__->String; ?>
</td>
        <td>
            <?php echo $Word__->CodedString; ?>
</td>
    </tr>
    </tbody>


<th> Hash with CodedString </th>
            <thead>
    <tr>
        <th>
            Word:
        </th>
        <th>
            Number:
        </th>
        <th>
            Hashed:
        </th>
    </tr>
    </thead>
    <tbody>
       
    <tr class='success'>

        <td>
            <?php echo $Word__->String; ?>
</td>
        <td>
            <?php echo $Word__->CodedString; ?>
</td>
        <td>
            <?php echo $Word__->CodedHash; ?>
</td>
    </tr>
    </tbody>

        </table>
   
<form method="post">
    <input name="word" value="<?php echo $word; ?>">
        <input type="submit">
</form>
        </div>
</body>
</html>