I am not sure all what you are asking regarding the user. The host account is cpanel on an apache server. Please expound on how I can identify the user.
I am not sure what chmod u+rw is. I chmod articles to 766 and it did not create the file so I tried it at 777 to see and it still did not create the file.
Also: In the code above I left out the file extension I highlighted how I added it in the code below... is that correct.
<?php
if (isset($_POST["submit"]))
{
$pagename = $HTTP_POST_VARS['pagename'];
$createpage = $HTTP_POST_VARS['page'];
$content=stripslashes($createpage);
[COLOR="RoyalBlue"]$f1 = fopen("../articles/".$pagename.".php", "w+");[/COLOR]
fputs($f1, $content);
fclose($f1);
}
?>
This is the code for the form. Both chunks of code are on - article-test.php which is in a folder on the same level as the "article" folder
<form action="article-test.php" method="POST">
<table class="admin-info">
<tr>
<td class="admin-info-left">Page Name</td>
<td class="admin-info-right"><input type="text" name="pagename" size="40" maxlength="256">
</td>
</tr>
<tr>
<td class="admin-info-left">Content</td>
<td class="admin-info-right"><textarea name="page" cols="30" rows="5">
</textarea>
</td>
</tr>
<tr>
<td class="admin-info-left"><input type="submit" name="submit" value="Submit">
</td>
<td class="admin-info-right"> </td>
</tr>
</table>
</form>
Thanks again for your help
Pete