B
B
BonBon Slick2016-08-18 11:09:48
JavaScript
BonBon Slick, 2016-08-18 11:09:48

What is the best way to pass the editable object ID to the edit page?

For example, I have 2 pages in the admin panel, 1 displays all posts, and the 2nd page for editing a post. We have all the posts in front of us, there is a button next to each post "edit", which redirects to the edit page. The question is, what's the best way to pass the ID of the post we want to edit to this page?
(I was thinking about: cookie( jquery / php ) / $_SESSION ( php )/ session(local)Storage , or create some kind of hidden input for each field of the post, from where we will send the ID that is written in the input with the skip, etc. e.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Snewer, 2016-08-18
@BonBonSlick

Is Passing in a URL Bad?
/edit/id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question