When I submit I receive a 403 error
<h1>Add or update the Description of your property</h1>
<form method ="post" action = "<?php update() ?>" >
<input type="hidden" name="filename" value="description" >
<textarea name="content" rows="5" cols="100">Warning upon pressing "Update" your description will be changed.</textarea><br/><br/>
<input type="submit" name="descriptionUpdate" value="Update"/>
</form>
function update ()
{
if(isset($_POST[$_POST['filename'].'Update']))
{
$file = 'http://localhost/myweb/data/'.$_POST['filename'].'.txt';
if(!empty($file))
{
file_put_contents($file,$_POST['content']);
}else{print "The" .$_POST['filename']. "is blank....";}
}
}
Thanks in advance for your assistance...