Im still very to php and don't understand how it all ties togethter with html.
I found this snippet of code in another post and don't understand how to make the html part write to the file.
<?php
if ($_POST)
{
//post part
... some code
}
else
{
?>
<!-- form part -->
<form action="first.php" method="post">
<input type="text" name="test">
<input type="submit" value="submit">
</form>
<?php
}
?>
Can you help me with the 'some code' and '<!-- form part>'