hi,
i have this simple html code with php, and i want to receive the information from the form and print on the screen in index.php, but this form doenst return anything
Does anyone knows what’s the problem
Thanks in advance
<html>
<head>
<title>test</title>
<meta http-equiv=’Content-Type’ content=’text/html; charset=iso-8859-1′>
</head><body>
<?
include ‘funcs.php’;
calfunc($fname,$lname);
print “<br>NAME 1″.$fname.”<br>”;
print “<br>NAME 2″.$lname.”<br>”;
?>
</body>
</html>
file funcs=
<?
function calfunc($fname,$lname)
{
?>
<form action=”index.php” method=”post”>
First name:
<input type=”text” name=”fname” value=”Mickey” />
<br />
Last name:
<input type=”text” name=”lname” value=”Mouse” />
<br />
<input type=”submit” value=”Submit” />
</form>
<?
}