Hello there,
This is my form:
[code=php]<?php print “$site”; ?>
<form action=”save.php” enctype=”multipart/form-data” method=”post”>
<p> </p>
<table border=”0″ cellspacing=”2″>
<textarea rows=”20″ cols=”70″ name=”message” type=”file”><?php include (‘../’.”$site”); ?></textarea></td></tr>
<tr><td> </td><td><input type=”submit” value=”Save”></td></tr>
</table>
</form>
Now, when I click the submit button, I would like to have the .php code that was in the text box to be saved into the directory on the server: ../$site.
So basically save it to ‘../’.”$site”
Any help with the .php script (which is as you can see, called save.php), would be appreciated.
Ps: I have to use the fwrite function, right?
Grtz,
SaRs!