I am using Custom PHP. I have a HTML Page https://wefeed.com.au/office-catering.html I have an admin panel from where i want to edit this page like we do in Wordpress. But i want only to edit the Text/Headings and Pictures. I am basically confused how to achieve that. Like these
Make a single form in admin panel, where i put every detail that i need to edit on front end page. But the problem here is, i know how to upload one image with one submit request, but as there are 7 to 10 images in the page, i don't know how to handle that.
Should i update the page section wise. I mean Call the top section as Section 1, Cal the mid section of page as Section 2 and so on.
A better guide is needed please.
Just to better explain. As i need to give user an option to create the locations first and then can edit if needed.
<form class="form-sample" method="post" action="procc_create_loc.php" enctype="multipart/form-data">
<p class="card-description">
Main Top Section
</p>
<div class="form-group">
<label for="exampleInputEmail1">City Name</label>
<input type="text" name="loc_name" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Main Heading</label>
<input type="text" name="main_h" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Main Paragraph</label>
<input type="text" name="main_p" class="form-control">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Image</label>
<input type="file" class="form-control" name="pic" id="exampleInputPassword1">
</div>
<!-- Section Two -->
<h5 class="card-title">Section Two</h5>
<div class="form-group">
<label for="exampleInputEmail1">Sub Heading</label>
<input type="text" name="s2_subH" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Heading</label>
<input type="text" name="s_H" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<!-- Section Two -->
<!-- Section Three -->
<h5 class="card-title">Section Three</h5>
<div class="form-group">
<label for="exampleInputEmail1">Sub Heading</label>
<input type="text" name="s3_subH" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Heading</label>
<input type="text" name="s3_H" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Paragraph</label>
<input type="text" name="s3_p" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Image</label>
<input type="file" name="s3_img" class="form-control" id="exampleInputEmail1" >
</div>
<!-- Section Three -->
<!-- Section Four -->
<h5 class="card-title">Section Four</h5>
<div class="form-group">
<label for="exampleInputEmail1">Sub Heading</label>
<input type="text" name="s4_subH" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Heading</label>
<input type="text" name="s4_H" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Paragraph</label>
<input type="text" name="s4_p" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Image</label>
<input type="file" name="s4_img" class="form-control" id="exampleInputEmail1" >
</div>
<!-- Section Four -->
<!-- Section Five -->
<h5 class="card-title">Section Five</h5>
<div class="form-group">
<label for="exampleInputEmail1">Sub Heading</label>
<input type="text" name="s5_subH" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Heading</label>
<input type="text" name="s5_H" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Paragraph</label>
<input type="text" name="s5_p" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Image</label>
<input type="file" name="s5_img" class="form-control" id="exampleInputEmail1" >
</div>
<!-- Section Five -->
<!-- Section Six -->
<h5 class="card-title">Section Six</h5>
<div class="form-group">
<label for="exampleInputEmail1">Sub Heading</label>
<input type="text" name="s6_subH" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Heading</label>
<input type="text" name="s6_H" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Paragraph</label>
<input type="text" name="s6_p" class="form-control" id="exampleInputEmail1" placeholder="Sydney">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Image</label>
<input type="file" name="s6_img" class="form-control" id="exampleInputEmail1" >
</div>
<!-- Section Six -->
<input type="submit" name="create_locations" class="btn btn-primary" value="Create Locations">
</form>
Thank you