-
- 8 Posts
Hello!
I have the following problem. This is my code:
$SendMail .=<<<EOD
<form method="POST" name="myform" action="[~[*id*]~]" >
<INPUT type="text" name="title" size="80" maxlength="80"><BR>
<INPUT type="submit" value="SEND" style="font-weight: bold;"> <INPUT type="reset" value="Clear">
</FORM>
EOD;
if (isset($_POST["title"])) {
$SendMail .= "<p>Hello" . $_POST[’title’] . "</p>";
}
return $SendMail;
When I submit form the $_POST variable isn’t shown. The same occurs if I change $_POST to $_GET. So, why I cannot receive $_POST or $_GET variables value?
Thanks in advance.
-
- 1,097 Posts
Quote from: Levonty at Aug 01, 2006, 12:56 PM
When I submit form the $_POST variable isn’t shown.
Is the Hello bit shown?
If your page is cached, the snippet needs to be called uncached, [!...!]. If the snippet as well as the page is cached, it will never change from its first display, since it isn’t run again on the page refresh.
-
- 8 Posts
Thanks!
It’s really helps me!