Problem calling a php file from html form?

Vagos

New member
I am using xampp control panel and i want to call a php file from html form... when i push the submit button on the form the browser opens with the php file selected but it wont run.I have put both the html file and the php file in the same folder in xampp\htdocs. here is the code in the html file:
<html>
<head> <title> Calculator </title> </head>
<body>

<form action="calculator.php" method="post">

<input type="text" name="curnum"> Memory:
<input type="text" name="mem" value="0" readonly> </br>
<input type="submit" name="add" value="+">

</form>
</body>
</html>
 
Back
Top