PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You are fetching an array, but using an associative array for $row['name'], $row['address1'], $row['address2']. Check the manual for mysql_fetch_array() instead: http://us.php.net/manual/en/function.my ... -assoc.php
You are very close. The manual has many very good examples. And user supplied examples in the comments.
For the second example, you need to get the values from the form from the superglobal array $_POST (e.g., $_POST['name']).