Mark,
Thanks, yes, sorry again, my Tweet was unclear (damn 140 chars).
Yes, how I described it above is how I have it set up. Just to be clear:
1) I have a page that includes the following chunk:
<form name="contactform" method="POST" action="/email" class="sideform">
<p>Update your email address on file:<br />
<span class="bodytexttight">Enter email address:</span>
<input name="submitby" type="text" class="frmfld" id="submitby" size="16" />
<br />
<input type="submit" class="butn" value="Submit" /></p>
</form>
2) On the page "email" I have the following chunk that I want updated:
[[contactPost]]
<form id="form1" method="POST" name="form1">
<input class="input" type="text" name="submit_by" value="[[+contactemail]]" size="40" /></td>
<input class="input" type="submit" name="B1" value="Submit" /> <input class="input" type="reset" name="B2" value="Reset" /></form>
3) Finally, the above chunk contains the following snippet [[contactPost]] (yes, I modified it from the above):
<?php
var_dump($_POST);
//currently returns array(0) { }
$contactvar = $_POST['submitby'];
if (!isset($contactvar)) {
$modx->setPlaceholder('contactemail', 'This is empty!');
} else {
$modx->setPlaceholder('contactemail', $contactvar);
return "";
}
?>
4) So the upshot is that I'm not getting anything returned from $_POST vars since the dump returns arrray(0) and no value on the form.