when i try
echo "anything
whatever";
the result :
anything
whatever
But when i try it from user input it doesn't work
test.php
<html>
<body>
<h1>Authentication v 0.04</h1>
<form action="" method="GET">
Login <br/>
<input type="text" name="username" /><br/><br/>
<input type="submit" value="connect" /><br/><br/>
</form>
<fieldset><legend>Authentication log</legend><pre>
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo $_GET['username'];
?>
</pre></fieldset></body></html>
if $_GET['username'] = "anything
whatever"
the result is
"anything
whatever"
it treats
as string !!!
why ?