Page 1 of 1

Creating Forms

Posted: Fri Oct 22, 2004 3:09 am
by andrewau
Hi,

CMS Made Simple is great. Have it installed and have got my own template working fine. Now I want to put in a contact submssion form on the site and my usual php code will not work. Can someone please tell me how a form can be handled?

Thanks.

Creating Forms

Posted: Fri Oct 22, 2004 4:28 am
by BamaRob
Try the built-in module:

Code: Select all

{contact_form email="someone@somewhere.com"}

Creating Forms

Posted: Fri Oct 22, 2004 4:46 am
by andrewau
Thanks for that, perfect. Now what if I wanted to create my own form with my own fields and what not?

Andrewau

Creating Forms

Posted: Fri Oct 22, 2004 4:56 am
by BamaRob
I think wishy talked about putting together some documentation/tutorial on working with forms. I haven't attempted to integrate my own forms, but I imagine you could do it with a user defined tag (in the Plugin Management section of the admin menu).

wishy?

Later,

BR

Creating Forms

Posted: Fri Oct 29, 2004 7:19 pm
by Greg
The built in contact module is not working on my website.
I have a valid email address in the tag, I completed all fields, the email address is a valid email address. I keep getting the message:

Sorry, the message was not sent. The server may be down!

Are there any other settings I need to make?

Creating Forms

Posted: Fri Oct 29, 2004 8:02 pm
by BamaRob
Hmm. That's interesting. I kind of wondered if there were any settings in config.php to set it up to use different mail servers. I haven't checked into it, nor have I actually tried to use the contact form on a production site, yet.

wishy???

Later,

BR

Creating Forms

Posted: Fri Oct 29, 2004 8:18 pm
by Ted
Well, the first thing you should do is take the @ away from in front of the mail command on line 55 of plugins/function.contact_form.php.

That should give you a better error message and will make it easier to trck down.

Creating Forms

Posted: Fri Oct 29, 2004 9:46 pm
by Greg
I removed the @ from line 55. No help, same one line message.

Creating Forms

Posted: Fri Oct 29, 2004 11:14 pm
by Greg
Html created (view source):

Code: Select all

<form action="" method="post" name="contactForm" style="font-weight: bold;">
Should there be a parameter in the action = ?

Creating Forms

Posted: Sat Oct 30, 2004 1:59 am
by calguy1000

Code: Select all

{contact_form email="rob@techcom.dyndns.org"}
That's all I have to get my contact form working.

Creating Forms

Posted: Sat Oct 30, 2004 3:13 pm
by Bewbs
does your server use phpsuexec?

Creating Forms

Posted: Sat Oct 30, 2004 3:25 pm
by Greg
Not that I know of, no reference in phpinfo
Standard linux , php 4.3.8, Apache 1.3.31, MySQL 4.0.21, Zend Engine v1.3.0