Page 1 of 1

my good old php contact form in cmsms

Posted: Mon Feb 09, 2009 3:31 pm
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

Re: my good old php contact form in cmsms

Posted: Mon Feb 09, 2009 4:41 pm
by Nullig
What about using this method posted by calguy:

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

Nullig

Re: my good old php contact form in cmsms

Posted: Tue Feb 10, 2009 6:55 pm
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.