PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
above the lines that you get the error is because indeed you have an undefined variable.
The above code only sets the variable if the post was made otherwise there is none so add this above you code:
$propertyname = "";//or you could say $propertyname = NULL;
//then your code here
if (isset($_POST['propertyname'])) {
$propertyname = str_replace("\r\n","",$_POST['propertyname']);
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
}