Smartys wrote:1. rm is not a PHP function
Oops. Old habits die hard. Unlink is the one I have in there. That is the correct equivalent of rm, is it not?
Smartys wrote:2. button should be input
Cheers.
Smartys wrote:3. PHP is done server side, so you need the user to submit a form with all the data
Mind if I ask one more question on this bit? Do I take the php section out and supply the filenames to another script? Something along the lines of:
<form method=\"post\" action=\"page.php?subpage=\"delete\"?".$file1.",".$file2."\"><input type=\"submit\" value=\"Delete\" onclick=\"submit\"/></input></form>
Or can the deletion bit actually be called from within that section above? Apologies for what may appear to be obviously simple questions. I'm just having a tad of a problem getting my head around this bit.
p.s: Is there a good online resource for html scripting/writing information and tutorials?
Thanks ever so much once again,
Matt