Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Coder

Parašė sniuff· 2008 Lap. 20 18:11:07
#4

<?php
if (isset($_POST['code'])) {
$message = addslashes($_POST['message']);;

$patterns[0] = '/a/';
$patterns[1] = '/b/';
$patterns[2] = '/c/';
$replacements[2] = '911';
$replacements[1] = '29';
$replacements[0] = '11)';
echo preg_replace($patterns, $replacements, $message);

echo "<br><br><hr>";
}

echo "<center>
<form action='' method='post' name='submitform'>
<input name='message' type='text' style='width:200px'>
<input type='submit' name='code' value='Code it !'>
</form>
</center>";

?>




pasidariau pats ;)
Jei kam reikės pasitvarkys pagal save :p