Jump to content

One last question... Php & text files


whelpton

Recommended Posts

I suppose I should have expanded a bit more, thanks for your advice on strip slashes, but how would I impliment it into this code?

 

<?php

$f = fopen("/home/alport/public_html/".$_SESSION['s_username']."/text/profile.txt", 'w');

fwrite($f, $_POST['save']);

fclose($f);

header('Location: home.php?action=change');

?>

 

or is it something that needs to be added at the form stage?

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.