
As there is a dynamic list of possible elements, we want only one save button at the bottom, so you can go down them, change whatever you want and then save them all, rather than saving to have a save button for each one individually.
At the same time, we also want to be able to delete elements. There are other ways it could be done, e.g. tickboxes and then a delete button at the bottom, but the most user friendly way to do this I think is just to have a delete button next to each one (it's using an input type='image').
Now since that would require a form within a form, it doesn't work. (It might do on some browsers, I haven't tested them all, but it doesn't on the one I'm using - the inner forms (delete) work but the overall form no longer does anything when you click the save button.
In this kind of situation, what would you consider the best way around it?
I'd rather avoid having to put anything like that into a javascript function if possible, as I'm trying to make it as easy and simple as possible for other people to maintain at a later date.
I suppose I could make things like that just a link which uses $_GET to process it instead of a post form, but again I'd rather not as it doesn't seem like a very good way to do it.
What would you suggest?
Cheers.

New Topic/Question
Reply



MultiQuote





|