my good old php contact form in cmsms

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
pedes
Power Poster
Power Poster
Posts: 840
Joined: Tue Jan 27, 2009 11:47 am

my good old php contact form in cmsms

Post by pedes »

As i can not use formbuilder...sending emails doesn't work... (see old topic in dutch discussion... http://forum.cmsmadesimple.org/index.php/topic,30315.0.html)

So i want to integrate my good old php contact form... in this form i use PHP_SELF
on my old site (without cmsms) this form works perfect...

my old contact page looks like this:







">
...




I used my old php code in a template... got errors
I try to make an UDT but it keeps giving me the same error : incorrect code
I have let the php syntax out of the code, like the manual told me...

How can i integrate my old contact page (form) besides using an lightbox/shadowbox link and let it popup.
Is there another way to inegrate my old code.

Thxs
Peter
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: my good old php contact form in cmsms

Post by Nullig »

What about using this method posted by calguy:

http://forum.cmsmadesimple.org/index.ph ... l#msg95918

Nullig
Pierre M.

Re: my good old php contact form in cmsms

Post by Pierre M. »

Hello Peter,
pedes wrote: So i want to integrate my good old php contact form... in this form i use PHP_SELF
on my old site (without cmsms) this form works perfect...

Code: Select all

<form method="post" action="<?php $_SERVER['PHP_SELF']; ?>">
If I understand well, this is unrelated to CMSms : this PHP code is on somepage.php outside of CMSms. It should standalone work as previously. If it doesn't it can work better integrated within CMSms.
pedes wrote: I used my old php code in a template... got errors
I try to make an UDT but it keeps giving me the same error : incorrect code
I have let the php syntax out of the code, like the manual told me...
The right integration may be only a small syntax error away : quote escaping, URL via $pagealias or so, etc.
I think the UDT is a good idea to integrate private HTML form code in "standard" templates.
Try to proceed by steps : begin with hello world, then hello Peter, then hello $page...

Pierre M.
Post Reply

Return to “Developers Discussion”