![]() |
More PHP help needed!
Alright! I've practiced a ton of php and am learning more and more. Now, I've figured out how to make an admin area (secure login/logout) with a page creator, page editor, and IP logger. The page editor is actually what I need help with as of right now.
I'm using a rather strange method to edit things. Really what I want is to edit the raw data. As of right now, I'm editing the data output. I've yet to figure out how to edit any other way. So, please take a look and tell me a better way with this. index.php Code:
<?php index.php?function=editpage Code:
<form id="form1" name="form1" method="post" action="index.php?function=editpage&data=process"> fedit.php Code:
<?php |
I have no idea what you're showing me.
|
Quote:
If you make the pages you will see and understand what I did. This is a page editor. I am using the second code that I made to call other pages via include within the text box. I am using the 3rd code to delete then make the pages ("update"). I need to know how I would pull raw data into the box instead of pulling output data. |
htmlspecialchars?
I don't see why you would want to do what you're doing, though. |
Quote:
I'm creating a website for my neighbors company. Basically he needs me to create a insite page creator and editor. The page creator wasn't an issue, but the page editor was another story. I had to think outside the box when creating it. But I can't pull raw data from the server, only output data. It is important that I finish it by next week Friday. $50 for me! |
file_get_contents
Still sounds like a bad idea. |
Quote:
Thank you WW. I had to look up the function since I'd not not heard of it. I figured out that I had to use echo file_get_contents($file); I know it sounds like a bad idea but I am serving the customer. I have to do what the customer wants. That's just the way things work, for now anyways. |
Don't forget to htmlspecialchars. Otherwise, you won't be able to have a textarea in the file being edited.
I sent you an example of a better way to run a site on ICQ. |
All times are GMT -6. The time now is 03:02 AM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.