Hi I have a funny problem with passing variables from a form to the snippet
here is a example:
<?php
echo "<form method='post' action='[~[*id*]~]' id='someID'>
<input name='test' value='test' id='test' />
<input type='submit' value='send text' id='sortCal' name='sortCal'>
</form>";
echo '<br>'.$_POST[test].' -> some text from text input';
?>
when the submit bottom is pressed the $_post never comes to the snippet, FireBug says that the variable should be set.
Any that have a solution on that?
To call a snippet uncached you need to use [!snippet!] rather than [[snippet]]. Sottwell has a great article on the workings of the document parser that explain why this is so.