Add a Task
Explore how to create a task input form, fetch project data from the database, handle form submissions, and insert new tasks into the MySQL database using PHP. Understand key steps for building CRUD functionality and managing dynamic data in your app.
We'll cover the following...
We'll cover the following...
The task form
We’ll create a new file called task.php from project.php. Let’s add the form:
<label for="project">Project</label>
<select name="project" id="project">
<option value="">Select a project</option>
<!-- options here -->
</select>
<label for="title">Title</label>
<input type="text" placeholder="New task" name="title" id="title">
<label for="date">Date</label>
<input type="date" placeholder="New task" ...