Jump to content

PHP File Editor Help


Spixxx

Recommended Posts

First off, here's a link to my code, because I dont know but it wont post the topic if I include it...I have no idea why:

[a href=\"http://www.fefusion.net/spx/code.txt\" target=\"_blank\"]http://www.fefusion.net/spx/code.txt[/a]

Everything works its just that when I edit the file in the second page, the...

[code]
echo "<input type='hidden' name='data' value='$data'>";
[/code]

...messes up the second page and displays random input buttons, text, etc

What other way can I do this while still preserving the orginal $data before replaceIn() and use the old $data for the next page?
Link to comment
Share on other sites

I got help from another forum, but as of now disregard the above, I have one last question on this subject

My huge code:

[a href=\"http://www.fefusion.net/spx/code.txt\" target=\"_blank\"]http://www.fefusion.net/spx/code.txt[/a]

Here's what it does, forget the bottom part, but at the top...
The beggining form shows an input box and a dropdown to specify wether the file is a backup file
If it is, then it does its own thing, and forgets the bottom part, which would be if it WASNT a backup file
It goes to a new page, posts the backup/$filename in a textarea, and you can edit/save it.
But when I click save, it doesnt save and it disregards this whole section:

[code]
if($submit3 == "Save"){BLAH}
[/code]

...and doesnt save or echo $filename Updated, just goes back to the first form, which was if(!$submit1){}

I know its long and everything but it would be greatly appreciated if someone would tell me what I did wrong...probably some small mistake grr...

Thanks.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.