in my website i am fetching about.php content from database like this
$query= mysqli_query($connect,"SELECT * FROM about");
while ($row = mysqli_fetch_assoc($query)):?>
<p><?php echo $row['content']?></p>
<p><strong>Projects Completed : </strong><?php echo row['projects_completed']?></p>
Now there is an edit button to edit page content
<a class="btn btn-default pull-right" href="about-us.php?edit" name="edit">Edit</a>
what i want when someone presses edit button same content should be shown in text fields and a submit button , for this should i use includes ? i mean in the beginning i include a file that fetches content and then on button click i include a file that shows content in editable mode , is that right approach ?