somewhat worked..still need help
The session variable worked. THANK YOU! Will keep this in my notes so I won't forget again. :)
The button thing didn't work. After I changed the button, it wouldn't post to the database at all.
I changed it back as it was posting to the database only once except when I want the user to modify the info. When the user goes back to the form page (first page), it updates the database with the user info twice adding a new ID. I tried using a hidden field
<input name="hiddenField" type="hidden" id="hiddenField" value="<?php echo $_SESSION['CompanyID']; ?>" />
but it wouldn't work. What am I missing for the update? Thanks in advance!