I'm new to PHP and learning PHP by myself.Here I want to get the output value of text fields using php code but it gives me an error .can anyone point out the error .
here is my code test.php .................
<?php
$nameone=$_POST['nameone'];
echo $nameone;
?>
<hr/>
<h1>fgdhgf</h1>
<form action="test.php" method="POST">
<input type='text' id='nameone' name='nameone' >
<input type='text'name='name2'>
<input type="submit" value="submit" name="roll">
</form>