Hmm, that’s promising!
Perhaps you can help me understand what’s going wrong here?
<?php
var_dump($_POST);
if (!isset($_POST['submit'])){
echo"<form action='' method='post'>
<label for='name'>Name:</label>
<input type='text' name='name'>
<textarea name='message'></textarea>
<input type='submit' name='submit' value='submit'>
</form>";
}else{
echo 'Form recieved';
}
?>
This code works as a standard PHP page, but not when I try and include it as a snippet. It’s only a test form, but in principle it should display the contents of the $_POST array - at least an empty associative array.