I develop a simple blog site. There is a list of posts with "view post" button and "remove post" check-box below each post on my page. Also there is a "delete checked posts" at the bottom of the page. I'd like to send to a server a particular id when the "view post" is pressed and to send a list of ids when the "delete checked posts" button pressed. The problem is that I need nested forms for this, but they are not allowed.
How to overcome this?
I'm thinking of having a form for each post and on "delete checked posts" submit all checked forms via javascript.
Is it a good approach? Thanks in advance)
Aucun commentaire:
Enregistrer un commentaire