<![CDATA[ if ($_POST) allways returns false - My Forums]]> https://forums.modx.com/thread/?thread=10588 <![CDATA[Re: if ($_POST) allways returns false]]> https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60823 Very strange.

Anyway, thnx for all the help!]]>
Duggel Jan 16, 2009, 05:41 AM https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60823
<![CDATA[Re: if ($_POST) allways returns false]]> https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60822
<form name="contact" method="post" action="[~[*id*]~]">


Also the snippet processing the request needs to be uncached [!snippet!]]]>
dev_cw Jan 16, 2009, 05:32 AM https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60822
<![CDATA[Re: if ($_POST) allways returns false]]> https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60821 very strange embarrassed]]> Duggel Jan 16, 2009, 05:21 AM https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60821 <![CDATA[Re: if ($_POST) allways returns false]]> https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60820
isset($_POST['verzenden'])
?]]>
Bruno17 Jan 16, 2009, 05:11 AM https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60820
<![CDATA[Re: if ($_POST) allways returns false]]> https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60819

http://www.levenopzijnlimburgs.nl/contact
(the form page)]]>
Duggel Jan 16, 2009, 05:06 AM https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60819
<![CDATA[Re: if ($_POST) allways returns false]]> https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60818
<?php
if (isset($_POST['verzenden'])) {    
  $output= "post ok";
} else {
$output='
<form name="contact" method="post" action="">
<input type="text" name="voornaam" />
<input type="submit" name="verzenden" value="verzenden" />
</form>';
}
return $output;

?>
]]>
Bruno17 Jan 16, 2009, 04:59 AM https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60818
<![CDATA[if ($_POST) allways returns false]]> https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60817
I have the following code , that I allways use on other websites (simplified).
<?php
if ($_POST) {
echo "post ok";
} else {
?>

<form name="contact" method="post" action="">
<input type="text" name="voornaam" />
<input type="submit" name="verzenden" value="verzenden" />
</form>
<?php }
?>

This allways works, but now I use modx it doesn’t.
Anyone any idea?
]]>
Duggel Jan 16, 2009, 04:41 AM https://forums.modx.com/thread/10588/if-post-allways-returns-false#dis-post-60817