i have a page that has photos on it and i have a form that has a delete button. I have it directred to another page where the unlinking occursand the database field is updated. So I have a list menu that lists the photo numbers ie delete photo1 etc. This value is the name of the file that needs to be deleted. The problem i have is when they select photo1 to delete it sends that value to the next page but it does not know what field to delete it from. So what I want is when they click on photo1 it sends the name of the file and the named of the field. the field names are like photo1url photo2url etc. So if they select photo1 to delete i need it to send the name photo1.jpg plus photo1url for the field. Hope I am explaing it well enough. I have a hidden field hard coded right now to test it.works perfect so all i need it to dynamically assign this value. thanks
Couldn't you use a for loop with an if statement? Just make the naming conventions uniform and it should be pretty easy to implement.
Not sure if I understand correctly but I did something similar by making the value for example "photo1.jpg|photo1url" and then using PHP explode on the page that it is sent to to seperate the 2 values.