Hey All! 1st post here!
Just got into PHP and mysql and i'm having a problem.
I want to display the textfield values when i press the submit button, but it doesnt work, here's the code:
Thanks!!!
<body>
<form name="form1" method="post" action="test_05.php">
<input type="submit" name="btn1" value="Submit">
<input type="text" name="txt1">
</form>
<?
if ($_POST['btn1'] == "Submit")
{
echo ($txt1."<br>");
}
else
{
}
?>
</body>
/edit
It works on my localhost, but on my server it doesn't