I have a short question: I’m trying to place more than just one form (multiple forms) on the same page but can’t find a good example how this should be done. Can you help me out? I’ve read the comments on the Uniform Blog Page and the Forum but could not find a good Code example.
Something like a Newsletter Subscription on the Sidebar and a Contact Form in the Footer area.
Many thanx!!!
Funkybrotha
ps. Asked the same question in the Uniform Blog. No answer yet…
You can simply call uniform() multiple times in the controller. Make sure every call has a unique ID as the first argument. Each form gets it’s own variable like this:
Thanx for your help!
That is exactly what I tried already.
…but I get two errors:
Notice: Undefined variable: form1 in /Users/funkybrotha/Sites/kirby-master/site/snippets/form1.php on line 3
Fatal error: Call to a member function hasError() on null in /Users/funkybrotha/Sites/kirby-master/site/snippets/form1.php on line 3