Page 1 of 1

a simple form

Posted: Mon Jul 07, 2008 12:57 pm
by cenneth
hi,
Im been reading and searching for an answer but I cannot find it.
I need to setup a simple form. Im converting an existing website to cmsms and at the old site I have a search function.

Ie a form that posts the inputs to a php-script which displays results depending of the data of the post.

most of the php-code can be used using custom tags I suppose, but the simplest problem got me stuck, being an old php-programmer and not a smarty one ;)

how to a in a simple manner setup a form in cmsms to post to another page i cmsms (the one displaying the results)?

fell free to post or email me..

best regards

cenneth

Re: a simple form

Posted: Mon Jul 07, 2008 3:44 pm
by Pierre M.
Hello,

here is how to do things without php (with Smarty) :
http://forum.cmsmadesimple.org/index.ph ... l#msg95949
the trick is $smarty.get.yourvar1 or $smarty.post.yourvar2 (and $smarty.server.PHP_SELF or $pagealias}
Of course you can make UDT with php in them too.

Pierre M.

Re: a simple form

Posted: Thu Jul 10, 2008 9:08 am
by cenneth
thx a lot!! now Ive been trying to fint how to post to a page that is not _self? I found it a few days ago, but now Ive been searching for an hour but cannot find it.. ie how to point the form post to a cmsms page as reciever?

Re: a simple form

Posted: Thu Jul 10, 2008 10:24 am
by cenneth
solved it! :)

case closed thank you!

Re: a simple form

Posted: Thu Jul 10, 2008 9:29 pm
by Dr.CSS
Not till you put [solved] in the subject line of your first post...