|
Posted by Janwillem Borleffs on 04/17/06 17:16
Sqrl wrote:
> Someone supplied me with the following code, I've cleaned up a few
> errors in it, but it does not work. My PHP is limited, I created
> TagCorner from scratch following tutorials on using PHP and databases
> but am lost with this one.
>
<form action="freetag.php" method="post">
<p align="center">
<u>Only input letters, numbers, asterisks, and underscores.</u>
</p>
<p align="center">
Text: <input type="text" name="message" size="20"><br />
<input type="submit" value="Get Your Tag">
</p>
</form>
<?php
if (isset($_POST['message'])) {
print preg_replace('/([a-z\d_*])/', '<img src=$1.gif>',
$_POST['message']);
}
?>
JW
Navigation:
[Reply to this message]
|