skateman07054
New member
Please help. I am trying to print out the input from the text box to the handle-data.php page. What ever name you enter it shows up on the handle-php screen
HTML PART (with javascript)
<form name="myform" name= "name" action="handle-data.php">
<a href="javascript: submitform()"</a>
</form>
what color is the grass?
<input type = "text" name ="name" id = "answer">
<input type = "button" id = "time" onclick="answer()">
PHP part
<?php
$name = $_POST["name"];
echo $name;
?>
HTML PART (with javascript)
<form name="myform" name= "name" action="handle-data.php">
<a href="javascript: submitform()"</a>
</form>
what color is the grass?
<input type = "text" name ="name" id = "answer">
<input type = "button" id = "time" onclick="answer()">
PHP part
<?php
$name = $_POST["name"];
echo $name;
?>