Jump to content


snippet form problem


2 replies to this topic

#1 vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 15 February 2010 - 07:08 PM

Hi guys (That is: Ralph and Chris D., is anyone else still following this forum?)

I have a major problem with a new installation: I cannot submit a form anymore! If I click submit, the form is not posted.
I copied a form snippet from another installation (on which there is no problem) on the same server, but it doesn't work.
I tried symplifying everything to see where the problem is, but even the code
if(isset($_POST['submit'])) {
	$displaymsg = "thank you for clicking";
}
else {
 $displaymsg = " <form action=\"pagewiththesnippetonit.html\" method=\"post\"><input name=\"submit\" type=\"submit\" value=\"Click Me\" /> </form>";
}
return $displaymsg ;
does not show what is in the if statement. The else statement is shown.
I actually managed to get into the if statement once or twice (no idea why, nothing changed), but once I got there I wasn't able to get to the else-statement when trying to reload the file. Only with making alterations in the snippet I was able to get back to the else-statement.
To make sure that it is not a problem on the server settings I tested the same code in a different directory with the RewriteEngine set to off (htaccess)

My guess is that it has something to do with the chmod settings, but I don't even know where to begin to look.

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 15 February 2010 - 07:21 PM

Make sure the document containing the form is not flagged as cacheable... chmod settings will not have an effect on a page pulled from the database and rendered through Etomite - at least not unless the page is cached, in which case chmod wouldn't have an effect because the document would simply be read from static cache rather than dynamically rendered...

#3 vampke2

    Etomite Forum Newbie

  • Member
  • 25 posts

Posted 15 February 2010 - 07:30 PM

...
thank you Ralph
...:blush:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users