I am a newbie to php and learning now, can you please help me telling how can I take inputs from users in pHp instead of using forms (i.e., a replacement of scanf() in php. I am solving a question to take number as a input and print that number untill the number is 45.)
and
I want to use html and php on the same file, I am doing this which is showing error,how to correct that,don't know.
I think its due to null, please check my code
<html>
<body>
<form action="" method="post">
<input type="text" name="user" placeholder="enter a text" />
</form>
</body>
</html>
<?php
echo $_POST["user"];
?>