Alrighty then.
So I've gotten my script to upload files. A good start; everything works fine.
I've also written some PHP to parse the directory and store the names of the files in it. Then I've passed those values into a javascript function which checks to see there's no filename conflicts between existing files and the one being uploaded.
Here arises my problem: the javascript pops open a confirm() window saying "Holy schnikes, you REALLY want to write over this file!?" (or words to that effect). When the users clicks OKAY, how do I get that javascript to invoke some PHP (the delete script) without refreshing the page? Can it be done?
And if the page has to be refreshed, can I rig it so that the file which was uploaded moments before ISN'T uploaded again?
I'm pretty brainfried. Any help would be appreciated.