Here's part of the index file:
<form action="ProcessRecipe.php" method="post" name="Recipe" class="center">
<table style="width:80%; margin:auto">
<caption>
<p class="center">
<input type="text" name="RecipeTitle" input size="96" /></p>
</caption>
<br/>
<tr>
<th style="width:2%" />
<th style="font-size:16px; width:5%; text-align:center;">Qty</th>
<th style="font-size:16px; width:5%; text-align:center;">Measure</th>
<th style="font-size:16px; width:30%; text-align:center;">Ingredients</th>
<th style="width:10%;"></th>
<th style="width:2%" />
<th style="font-size:16px; width:5%; text-align:center;">Qty</th>
<th style="font-size:16px; width:5%; text-align:center;">Measure</th>
<th style="font-size:16px; width:30%; text-align:center;">Ingredients</th>
</tr>
<tr>
<td style="text-align:right; width:5%">1</td>
<td style=" text-align:center;">
<input type="text" name="1q" input size="6" id="focus-field" /><br />
</td>
<td style=" text-align:center;">
<input type="text" name="1m" input size="6">
</td>
<td style=" text-align:center;">
<input type="text" name="1i" input size="48" />
</td>
---Many more rows---
---Much more code ---
<input type="submit" value="Store" class="FormButton" /><br /></p>
</form>
Then here's the code for the file triggered by
<form action="EnterNewPass.php" method="post" name="Recipe" class="center">
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
</body>
</html>
<?php
$host="localhost";
$user="root";
$password="g1G3m#1989";
$Dbname = "Food";
$cxn = mysql_connect($host,$user,$password)
or die (mysql_error() . "couldn’t connect to server");
mysql_select_db($Dbname, $cxn)
or die(mysql_error() . "couldn't select database");
$1q = $POST['1q'];
$1m = $POST['1m'];
$1i = $_POST['1i'];
echo $1i;
?>[/code]
For some very strange reason, "ProcessRecipe.php" is displayed as a text file. I copied "ProcessRecipe.php" from a PHP file that works well. I also copied the index file from another one that works. I know I'm overlooking something obvious, but I can't figure this puzzle out