Creating Forms

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
andrewau

Creating Forms

Post 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.
BamaRob

Creating Forms

Post by BamaRob »

Try the built-in module:

Code: Select all

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

Creating Forms

Post by andrewau »

Thanks for that, perfect. Now what if I wanted to create my own form with my own fields and what not?

Andrewau
BamaRob

Creating Forms

Post 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
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Creating Forms

Post 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?
Greg
BamaRob

Creating Forms

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Creating Forms

Post 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.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Creating Forms

Post by Greg »

I removed the @ from line 55. No help, same one line message.
Greg
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Creating Forms

Post 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 = ?
Greg
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Creating Forms

Post by calguy1000 »

Code: Select all

{contact_form email="rob@techcom.dyndns.org"}
That's all I have to get my contact form working.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Bewbs

Creating Forms

Post by Bewbs »

does your server use phpsuexec?
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Creating Forms

Post 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
Greg
Locked

Return to “[locked] Installation, Setup and Upgrade”