Hi guys,
I've setup a test form to show what I'm talking about
=> http://ausgamingnetwork.com/testf.php
Type in the field anything with quotes i.e
"test"
-> My question is;
Why is it removing the content and not putting a \ in like is echoed from the print_r statement? The html code is causing this issue because " " is breaking the input tags. Shouldn't this be getting excluded?
Any help please?
The code is:
Also PHP INFO dump: http://ausgamingnetwork.com/info.phpPHP Code:<?php
$sent = $_POST["submit"];
$chkAccept = $_POST["chkAccept"];
$name = $_POST['name'];
if($sent){ if($chkAccept) { print_r($_POST); }}
?>
<form method="POST" action="testf.php">
Name Field: <input type="text" id="name" name="name" size="39" value="<?php echo $name;?>"> <br /> <br />
Show Print_R Stack: <input type="checkbox" id="chkAccept" name="chkAccept" value="1" checked> <br /> <br />
<input type="submit" value="Submit" name="submit">
<input type="reset" value="Reset" name="reset"></p> <br />
<?php echo $name; ?>
</form>
Thanks guys,



LinkBack URL
About LinkBacks
Reply With Quote





