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.
Quote from: Levonty at Aug 01, 2006, 07:56 AM
When I submit form the $_POST variable isn’t shown.
Is the Hello bit shown?
-
☆ A M B ☆
- 24,524 Posts
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.
Thanks!
It’s really helps me!