Jump to content


Photo

PHP File Editor Help


  • Please log in to reply
2 replies to this topic

#1 Spixxx

Spixxx
  • Members
  • PipPip
  • Member
  • 29 posts

Posted 17 March 2006 - 11:38 PM

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

echo "<input type='hidden' name='data' value='$data'>";

...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?

#2 Spixxx

Spixxx
  • Members
  • PipPip
  • Member
  • 29 posts

Posted 18 March 2006 - 01:54 AM

My bad my server was acting up, the link should work now...

If you have questions IM me at nitejag.

#3 Spixxx

Spixxx
  • Members
  • PipPip
  • Member
  • 29 posts

Posted 18 March 2006 - 04:48 AM

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:

if($submit3 == "Save"){BLAH}

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users