Going a wee bit mad here so hoping someone can help!
I have PHP writing out the following form (as it appears to the browser):
<form action="new-index.php" method="post" enctype="text/plain">
<p>
<input type='radio' name='status' value='1' checked>Visible<br />
<input type='radio' name='status' value='0' >Hidden
</p>
<textarea name="content" cols="60" rows="20" class="mceAdvanced">
my default test copy
</textarea>
<input type="hidden" name="mode" value="submit">
<input type="hidden" name="id" value="8">
<input type="hidden" name="type" value="page">
<input type="hidden" name="mce" value="y">
<p><input type="submit" name="submit" value="Update"></p>
</form>
And, in the page new-index.php (the target for the form), I have the following code...
if(isset($_POST["mode"])){
$mode=$_POST["mode"];
$id=$_POST["id"];
$type=$_POST["type"];
}
echo "mode=$mode - id=$id - type=$type";
However, the echo always comes up blank on all three values! I've been able to retrieve from GET but I just can't seem to get POST to work.
Any help is greatly appreciated!!