hi modx fans
ive made a little form using a few chuncks and a snippet,
basicly the snippet builds the form and also handles the post,
while the chuncks are used to call the snippet etc
the form displays perfectly and the html code looks ok (compared to others ive successfully done)
<form action="" name="SendMailForm" id="SendMailForm" method="POST">
<input type="hidden" id="qnr" name="qnr" value="0" /><input type="hidden" id="type" name="type" value="M" />
...
more fields
...
<fieldset>
<label class="textarea" for="msg">Message</label>
<textarea id="msg" name="msg" rows="5" cols="30" ></textarea>
</fieldset><fieldset>
<input type="submit" id="submit" name="submit" value="Submit" style="width:90px;" />
</fieldset>
</form>
and just to mention it, ive also tried
as well as
and just in case it might matter, i have friendly url’s and path’s enabled
and at the beginning of the snippet i have an if to catch the post
if ($_POST[submit])
{
$msg = 'SUCCESS!';
}
else
{
$msg = 'fu';
}
...
code to build the form
...
return $msg;
has someone got a clue why this isnt working?
its driving me crazy
thank you all in beforehand