That's brilliant, thanks Debbie!
I feel really bad (and cheeky) for asking anything more, but I've tried to do it myself and can't get it to work - I just want to have some sort of OK/Cancel confirmation pop-up box appear once any of the 3 email links are clicked, just so the user can confirm they actually want to send each of the emails.
I had succesfully added a popup alert box to each email, using echoed javascript, but using similar doesn't work for what I'm after (obviously I need a confirm type messagebox, not a simple alert one). I tried adding a javascript confirm to the links themselves, but that didn't work either. I think I've read that the php will run first anyway, so will need a server side confirmation, which isn't as easy in php as in javascript. Any ideas?
Also, and hopefully, lastly (I am sorry for asking so much of you!), I need to somehow show the updated record to the user once they have clicked one of the links. As you may remember, you helped me add an update function in business_logic that updates an emailstatus field. I don't have that field in the edit form, so thats not a problem. However, I copied that update function to do a similar thing for these artist emails, which updates another field to say the artists have had the details sent to them. This field, ideally, needs to stay on the edit form, but obviously doesn't update on the screen once the user clicks the send artist email link.
So how would I do this? Requery the record after the update function is called? Not entirely sure of the syntax for this though. Have tried using a Select * FROM tablename WHERE ID=currentIDvalue, but couldn't get it to work. Any ideas?
I am so grateful for all your help to date and can't thank you enough, regardless of whether you still continue to help me. You are an absolute star...
Regards,
Matt