D
D
Denis2016-02-24 12:57:10
PHP
Denis, 2016-02-24 12:57:10

How to auto-add code?

Hello. I have a gallery. Made it just for fun. Now I want other users to be able to add photos there. I would like to make it so that when you add a photo, text to the fields and click on the button (Example in the photo (Design VK for example)) , a code is automatically created in a certain place, and text is inserted into this code in a certain place, and in certain place photograph. 7e2abce28a2f4aa684dcdd656e16138f.jpg
I'm new so don't judge too harshly :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Fedoryan, 2016-02-24
@Denpin

What exactly is the problem?
The picture is selected, the text is written. Next:
- upload the file (picture) to your server
- remember in the database or wherever you want the path to this picture and the signature (text)
- generate the html markup (template) to display the picture with the caption
- add a new picture to the gallery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question