sending email based on fields in different tables
<p>I have an application system. I have 7 tables, each with a field called 'complete'.</p>

<p>Each table relates to a page and when the page is saved the value in complete changes to '1'.
When all tables have the complete field as '1', I want the submit button on the myaccount page to be active and direct to for eg thankyou.php. If all tables aren't carrying '1' in complete, it should return an error.</p>

<p>Any help would be great, but please be simple as I'm still learning!</p>

<p><strong>EDIT-</strong> more information
So a user logs into an application sees myaccount.php. This starts the session based on the user_id. 
There is then 7 links to individual pages which relate to the 7 tables in my database.</p>
