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
https://forums.phpfreaks.com/topic/5201-php-file-editor-help/
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
https://forums.phpfreaks.com/topic/5201-php-file-editor-help/#findComment-18517
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.