Jump to content

[SOLVED] file get contents issue


plznty

Recommended Posts

if ( $_GET['process'] == edit )
   {
   $data = file_get_contents("./web/$_COOKIE[user]/$GET_[file].txt");
   echo "
   <b>$welcome's Webpage Editor</b>
   <p>You are editing: $_GET[file]</p>
   <p><form action='editor.php?process=submit&file=$_GET[file]' method=post><textarea name='data' cols='40' rows='10'>$data</textarea>
   <p><input type=submit value=Login></p>
   </form>";
   }

 

I want the $data information into the textarea, help please?

Link to comment
https://forums.phpfreaks.com/topic/138761-solved-file-get-contents-issue/
Share on other sites

if ( $_GET['process'] == edit )
   {
   $data = file_get_contents("./web/$_COOKIE[user]/{$GET_['file']}.txt");
   echo "
   <b>$welcome's Webpage Editor</b>
   <p>You are editing: $_GET[file]</p>
   <p><form action='editor.php?process=submit&file={$_GET['file']}' method=post><textarea name='data' cols='40' rows='10'>$data</textarea>
   <p><input type=submit value=Login></p>
   </form>";
   }

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.