a simple form

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
cenneth
New Member
New Member
Posts: 3
Joined: Mon Jul 07, 2008 12:42 pm

a simple form

Post 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
Pierre M.

Re: a simple form

Post 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.
cenneth
New Member
New Member
Posts: 3
Joined: Mon Jul 07, 2008 12:42 pm

Re: a simple form

Post 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?
cenneth
New Member
New Member
Posts: 3
Joined: Mon Jul 07, 2008 12:42 pm

Re: a simple form

Post by cenneth »

solved it! :)

case closed thank you!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: a simple form

Post by Dr.CSS »

Not till you put [solved] in the subject line of your first post...
Post Reply

Return to “CMSMS Core”