How to save my page content to onclick url?

Asked

Viewed 81 times

0

Good morning guys, I would like to know how to save the content of my page in the url with a unique id. Like jsfiddle.net

For example, when you first access it has the default url: jsfiddle.net, but when you click on the "save" button, it generates this url: https://jsfiddle.net/eh3zpcko/, and every click on "save" it counts and generates the following url: https://jsfiddle.net/eh3zpcko/1/. I would like to know how I can do this without the user being logged in.

That up there is just one example.

Thanks in advance.

  • 1

    Doing this is not such a trivial task, I recommend studying/trying something, and asking more specific questions here.

  • You can initially create 2 tables, 1 as if it were the "father" and the other the son" When trying to save, it checks if there is already 1 father. if it does not exist, it saves in the parent table. If it exists, it saves in the child table

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.