Help pls (getting error in 5 chapter Form elements
The first program is not running correctly
it's not working
its the first code
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Say my name</title>
</head>
<body>
<form action="formprocess.php" method="post">
<table>
<tr>
<td>Name</td>
<td>rihit</td>
</tr><tr>
<td colspan="2" style="text-align:center;">
<input type="submit" name="Submit" value="Submit" /></td>
</tr>
</table>
</form>
</body>
</html>
2nd file is as follow
Code:
<html >
<head>
<title>Untitled Document</title>
</head>
<body>
<?php
echo '<h1>Hello' .$_POST['name'].'!</h1>';
?>
<pre>
<strong>DEBUG:</strong>
<?php
print_r($_POST);
?>
</pre>
</body>
</html>
it's not working please check this out and reply soon
Regards
Rohit
991-5858-991
|