I need help with some methodology here.
I have 3 text inputs in a form 'add_task':
<form action="page.php" method="POST">
    <input type="text" name="task_string" value="" />
    <input type="text" name="hours" value="" />
    <input type="text" name="minutes" value="" />
    <input type="submit" value="Add Task" />
</form>
The form 'creates' a task with a timeline using the inputs above.
Now, I have two tables, tasks and timelines
I can INSERT INTO the tasks table with the task_string value, the entry then holds a unique id that auto increments.
// tasks
+----+------------------+
| id | string           |
+----+------------------+
| 1  | task string here |
+----+------------------+
I now need to enter the minutes and hours values into the timelines table but I need to reference the above tasks.id
//timelines
+----+-------+---------+-----------------------------+
| id | hours | minutes | task_id                     |
+----+-------+---------+-----------------------------+
| 1  | 3     | 29      | // task_id from table above |
+----+-------+---------+-----------------------------+
How can I accomplish this using SQL Server and PHP in a multi-user environment?