03-01-2008, 05:37 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Jan 2008
Posts: 136
Thanks: 4
|
What would you do?
Hey guys
Sorry to trouble you again but I would like your advice.
In my members control panel, I have the option to view the different codes of the images which they have uploaded, and to delete them.
I know I can literally go
Code:
<form method="bla" action="bla">
<input type="submit" name="delete_$id" value="delete image">
</form>
for each image, but surely that would be terribly a lot of code for such a simple thing?
But there's an extra layer on top of this: that is I want AJAX to load / do the deleting without the page reloading. Other wise I could have done it by a link with the id=$id, but would that work with AJAX?
Am I explaining myself well? :P
What would you do?
Gareth
|
|
|
|