I have this html file:
<div>
<div class="input">
<img src="2017-01-10.jpg">
</div>
<div class="input">
Some text here
</div>
<div class="input">
January 10th 2017
</div>
</div>
I would like to make an input form (in another page) that add a div like that, above it.
So the user can fill the form with an image, a text and a date and when submit that will add to the html file above a code like that but with a new input.
In the end the code would be like this:
<div>
<div class="input">
<img src="2017-01-11.jpg">
</div>
<div class="input">
Some text here
</div>
<div class="input">
January 11th 2017
</div>
</div>
<div>
<div class="input">
<img src="2017-01-10.jpg">
</div>
<div class="input">
Some text here
</div>
<div class="input">
January 10th 2017
</div>
</div>
What would I put into the php file of the form? Is that possible for php to write permanently into the html file?