When I submit this form it downloads the php script it refers to:
<form action="insertcustomer.php" method="post" class="myform">
<p>
Name: <input type="text" name="name" size="20"/>
</p>
<p>
Address: <input type="text" name="addr" size="40"/></p>
<p>
City: <input type="text" name="city" size="20"/>
State: <input type="text" name="state" size="3"/>
Phone: <input type="text" name="phone" size="15"/>
</p>
<p>
Account Balance: <input type="text" name="acct_balance" size="13"/>
</p>
<p class="bttn">
<input class="b" type="submit" name="query" value="Insert Customer"/>
<input class="b" type="reset" name="reset" value="Clear Form"/>
</p>
</form>
Insertcustomer.php:
$name = $_POST['name'];
$addr = $_POST['address'];
$city = $_POST['ccity'];
$state = $_POST['cstate'];
$phone = $_POST['phone'];
$acct_balance = $_POST['acct_balance'];
Is there something wrong with the code? I have followed all steps mentioned in this article, but every time I click on the submit button, it downloads the php file. I apologize in advance as I am fairly new to php.
phpinfo.phpfile with the following contents:<?php phpinfo(); ?>. If you see a list of PHP information, PHP is configured properly.