Howdy ,i recently found this CMS and i think it's a cool tool ,but i am a coder and i want to include PHP routines in the pages.
I want to include an xHTML form + a PHP routine for my form. How can i do ?
Thanx a lot
PJ
Insert PHP & xHTML in my page
Re: Insert PHP & xHTML in my page
Je crois que vous trouverez toutes les réponses ici : http://wiki.cmsmadesimple.org/index.php/Developers_FAQ
Bonne chance.
Bonne chance.
Version 1.6-MLE
Re: Insert PHP & xHTML in my page
Hi pj.
The easy way:
I would create a user defined tag (UDT - in adminpanel: Extensions->User defined Tags)
Click "add".
Name your tag whatever you want (notice: alphanumeric chars only).
Insert your php script (notice: no opening and closing tags needed).
Catch the query/post vars for the vars of your form will have.
Process whatever you want to do with that vars.
Create the form with echo <form ... ; etc. and refer in the action attribute to index.php.
Save the tag.
In your template / content insert the UDT like {your_tag_name}.
That should be all.
The most recent way by non-coders:
Use the modules Formbuilder and Formbrowser.
The difficult way (by coders):
Create an own module.
Check out the skeleton module to figure out how to use the cmsms api to create modules.
Hope that helps.
Regards NaN.
The easy way:
I would create a user defined tag (UDT - in adminpanel: Extensions->User defined Tags)
Click "add".
Name your tag whatever you want (notice: alphanumeric chars only).
Insert your php script (notice: no opening and closing tags needed).
Catch the query/post vars for the vars of your form will have.
Process whatever you want to do with that vars.
Create the form with echo <form ... ; etc. and refer in the action attribute to index.php.
Save the tag.
In your template / content insert the UDT like {your_tag_name}.
That should be all.
The most recent way by non-coders:
Use the modules Formbuilder and Formbrowser.
The difficult way (by coders):
Create an own module.
Check out the skeleton module to figure out how to use the cmsms api to create modules.
Hope that helps.
Regards NaN.