bpat1434 wrote:And what problems are you running into? The deletion, the editing? What?
Oh, sorry. My problem is that when I click Save!, I just get a blank page, when it is supposed to be directing me. It doesn't rewrite the file, and I haven't even tried the Delete yet, I just set it up because I was reading a tutorial of how to do it.
Plasma wrote:Use the period (.) to concat strings, not + - Try that.
I'll try that now...
EDIT: I've come to some progress, mostly because I just realized how dumb I was. In editor.htm, I didn't add the "action" form field, so submit.php didn't know what to do... however, now I get the error "Cannot open file." I'm wondering if the editor to change the files has to be in the same directory as the files being changed? I have the directories set up like this:
/
/thissite/
/thissite/editor/
The "dir" variable is set to "thissite" only if a person is creating a file. If the user is editing a current file, I just use $_SERVER['SCRIPT_NAME'] and the "dir" variable becomes empty. It's not the best strategy, but I am pretty sure it'd work under the circumstances, so I don't know why this doesn't...