I'm new to php and im running xampp and the apache server is running, i created an html (phptext.html) form below which
inputs the user's name and sends it to a php file called phptext.php.
now the problem i'm getting is the html form sends data to the php file but my browser does
not display the user's input. it only displays the text String "Thanks for Answering,".
i got error reporting on and it does not show me any errors.
So i dont know what seems to be the problem, if its my xammp installation how can i troubleshoot it.
<!-- html file -->
<html>
<head>
<title>Entering Data into text fields</title>
</head>
<body>
<h1>Entering Data into text fields</h1>
<form method="get" action="phptext.php">
whats your Name?
<input name="data" type="text" />
<input type="submit" value="Send" />
</form>
</body>
</html>
<!-- php file -->
<html>
<head>
<title>Reading Data from text fields</title>
</head>
<body>
<h1>Reading Data from text fields</h1>
Thanks for Answering,
<?php
echo $_REQUEST["data"];
?>
</body>
</html>