Ok I know javascript is a lot better at this but at the moment my Browsers are being mean to mean and not letting me view JAVASCRIPT... so I gotta use PHP...
So heres the deal:
I don't know how todo this because PHP is a little literal. I know this doesn't work but heres what I came up with...
Codefixer.php:
Fix.phpHTML Code:<form action="fix.php" method="post"> <textarea cols="50" rows="10" name="Codefixer"></textarea> <input type="submit"> </form>
I was hoping so that only the <br> tags get affected, but that doesn't it just checks to see if the value is br... which isn't what I want...PHP Code:
<?php
$Codefixer = $_POST["CODEFIXER"];
$Br = "<br>";
$Correct = "<br />";
if($Br==$Codefixer) {
echo "$Correct";
}
else
{
echo "Code Clear!";
}
?>
Thanks for the help!


Reply With Quote

Bookmarks