Hey radon, there is a BIG mistake in your code. check this:
Here is your original code:
//Here for example :
echo("<b>Address:</b> <input type='text' name='famaddy' value='$addyf'><br>"); // Your input's called "famaddy", NOT "addyf" ....
echo("<b>City:</b> <input type='text' name='famcity' value='$cityf'><br>");
echo("<b>State:</b> <input type='text' name='famstate' value='$statef'><br>");
echo("<b>Zip:</b> <input type='text' name='famzip' value='$zipf'><br>");
echo("<b>Phone:</b> <input type='text' name='famphone' value='$phonef'><br>");
echo("</td></tr></table>");
echo("<br><br>");
echo("<input type='submit' name='subfam' value='Continue'>");
}
}
if($_POST['subfam'] == "Continue") {
// ... So here, you should use the name of your input,
// that is to say "famaddy" !!!!!!!
// The variable "addyf" is not set in this section of code !!!
$updatefam = mysql_query("UPDATE family SET
ADDRESS = '$addyf',
CITY = '$cityf',
STATE = '$statef',
ZIP = '$zipf',
P_PHONE = '$phonef' WHERE `fam_id` = '$id'");
Here is the right snip of code, try it:
echo("<b>Address:</b> <input type='text' name='famaddy' value='$addyf'><br>");
echo("<b>City:</b> <input type='text' name='famcity' value='$cityf'><br>");
echo("<b>State:</b> <input type='text' name='famstate' value='$statef'><br>");
echo("<b>Zip:</b> <input type='text' name='famzip' value='$zipf'><br>");
echo("<b>Phone:</b> <input type='text' name='famphone' value='$phonef'><br>");
echo("</td></tr></table>");
echo("<br><br>");
echo("<input type='submit' name='subfam' value='Continue'>");
}
}
if($_POST['subfam'] == "Continue") {
$updatefam = mysql_query("UPDATE family SET
ADDRESS = '$famaddy,
CITY = '$famcity',
STATE = '$famstate',
ZIP = '$famzip',
P_PHONE = '$famphone' WHERE `fam_id` = '$id'");
May the force be with you 😉