|
|
|
|
|
|
| |
| <?php
session_start();
$table = "";
$table .= "<center><table width=50% cellspacing=0 cellpadding=3 bgcolor=#f0f0f0>";
$table .= "<tr>";
$table .= "<td bgcolor=#000080 colspan=8>";
$table .= "<font color=white><b>";
$table .= " A S C I I - T a b l e";
$table .= "</b></font>";
$table .= "</td>";
$table .= "<td bgcolor=#000080 colspan=8 align=right>";
$table .= "<select onChange=\"javascript:window.location.search='font=' + this.value;\" name=fontlist>";
$table .= "<option value=Arial";
if($_GET["font"] == "Arial") $table .= " selected";
$table .= ">Arial";
$table .= "<option value=Garamond";
if($_GET["font"] == "Garamond") $table .= " selected";
$table .= ">Garamond";
$table .= "<option value=Tahoma";
if($_GET["font"] == "Tahoma") $table .= " selected";
$table .= ">Tahoma";
$table .= "<option value=Verdana";
if($_GET["font"] == "") $table .= " selected";
if($_GET["font"] == "Verdana") $table .= " selected";
$table .= ">Verdana";
$table .= "<option value=Webdings";
if($_GET["font"] == "Webdings") $table .= " selected";
$table .= ">Webdings";
$table .= "<option value=Wingdings";
if($_GET["font"] == "Wingdings") $table .= " selected";
$table .= ">Wingdings";
$table .= "</select>";
$table .= "</td>";
$table .= "</tr>";
$table .= "<tr>";
for($count = 1; $count <= 256; $count++)
{
$table .= "<td align=right class=count>";
$table .= $count;
$table .= "</td>";
$table .= "<td bgcolor=#ffffff align=middle class=char>";
$table .= chr($count);
$table .= "</td>";
if($count % 8 == 0) $table .= "</tr><tr>";
}
$table .= "</tr>";
$table .= "</table>";
?>
<html>
<head>
<title>Geerson - Ascii table</title>
<style>
td, select
{
font-family : Verdana;
font-size : 8pt;
}
td.char
{
font-family : <?php if($_GET["font"] != "") echo($_GET["font"]); else echo("Verdana"); ?>;
}
</style>
</head>
<body bgcolor=#808080>
<?php echo($table); ?>
</body>
</html> | | |
|
| mysql_escape_string Categories : PHP, MySQL, Databases, Strings | | | Allows you to parse a deliniated string and put the individual fields in a SELECT option in a form Categories : HTML, PHP, Strings | | | function textwrap will wrap text to any desired width using <BR>\n as the default line break.
Default wrap width is 80 columns.
Categories : Strings, HTML and PHP, PHP | | | Adding dashes to credit card numbers Categories : Strings, Credit Cards, PHP | | | I need a trim function/regexp that will trim all " " from the ends of a string. Categories : Regexps, PHP, Strings | | | Customizable encoding and decoding strings with security. Categories : PHP, Strings, HTML and PHP | | | Printer friendly pages from anywhere on a website. Categories : PHP, Strings, Content Management | | | Look for the *position* of the first occurence of string2
in string1, beginning at position start.
Categories : Complete Programs, PHP, Strings | | | Mimic ASP's GetString function with PHP Categories : PHP, Databases, MySQL, Strings | | | How to control the number of decimal places when outputting numbers. Categories : PHP, Strings, Variables | | | PHP5 URL Object Categories : PHP, PHP Classes, URLs, Strings | | | The Porter Word Stemming Algorithm in PHP
Reduces words to their base stem for search engines and indexing Categories : Algorithms, PHP, Strings | | | Takes an array and returns a string, suitable for inputing in an SQL statement
Categories : Arrays, Strings, PHP | | | Pull deliniated text strings into a "SELECT" statement in a form. Categories : HTML and PHP, PHP, Strings | | | columned txt file to array()? Categories : Arrays, Strings, Regexps, PHP | |
|
|
|