Two Contact Forms / Second Contact Form in one website

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
Lucaz
Forum Members
Forum Members
Posts: 66
Joined: Fri Dec 01, 2006 9:56 pm

Two Contact Forms / Second Contact Form in one website

Post by Lucaz »

Hello,

* I'm working on a website and want to work with two forms.
* I've installend the CMSMailer module.

1. I create and new page called 'contact'
2. I set the tag "contact_form" in the content field.
{contact_form email="email@domein.com" subject_get_var="Beta Contact Form"}

Now the page/URL "index.php?page=contact"
works and I'm getting email with content/messege in my mailbox.

3. I change the HTML so the look and feel for this page looks beter in a browser: /plugins/function.contact_form.php
And ready I am.

**********************
Now I want to create a second contact form with more than just the input fields: email, name, subject, messege.
I want to add: Adress, CustomerID, Productname, ect etc.

1. I create and new/second page called 'recept'
2. I set the tag "recept_form" in the content field.
{recept_form email="email@domein.com" subject_get_var="Beta Recept Form"}

Image

3. I duplicated /plugins/function.contact_form.php and renamed it to /plugins/function.recept_form.php

Image

/plugins/function.recept_form.php:
Image

Now the "index.php?page=recept" seems to work fine, I see all the input field in my browser.

4. Now when I do a submit, I get an empty e-mail and also my search does not work anymore...


Questions:

A: How can I make two contact pages?
B: Do I have to duplicate /plugins/function.contact_form.php and rename it to /plugins/function.newname_form.php
and put the tag {newname_form} in my content field in a new page?

I hope you can help me out, I've been trying for weeks now, and can't get it right..



**********************
UPDATE
**********************

Trying out the "FeedbackForm module"
Hope that will be the solution to my problem.
Last edited by Lucaz on Wed Jan 17, 2007 3:43 pm, edited 1 time in total.
Caspar

Re: Two Contact Forms / Second Contact Form in one website

Post by Caspar »

Otherwise try FormBuilder. It's declared alpha, but worked pretty okay when I tested it.

Regards,
Caspar
User avatar
Lucaz
Forum Members
Forum Members
Posts: 66
Joined: Fri Dec 01, 2006 9:56 pm

Re: Two Contact Forms / Second Contact Form in one website

Post by Lucaz »

cas wrote: Otherwise try FormBuilder. It's declared alpha, but worked pretty okay when I tested it.
Thank you Casper,

I tried that and workes great, can make as many contact forms I want and set them up how I want to. The standards (Default) contact form can make fakemail. So any user can mail and give and from adres.. So I deleted that and work with Formbuilder now.
Caspar

Re: Two Contact Forms / Second Contact Form in one website

Post by Caspar »

culas wrote: I tried that and workes great, can make as many contact forms I want and set them up how I want to. The standards (Default) contact form can make fakemail. So any user can mail and give and from adres.. So I deleted that and work with Formbuilder now.
Glad it works for you.  :)
Perhaps just keep in mind that an alpha-state module could do some weird things every now and than. Decent testing on a non-production site can keep your production site safe.

Regards,
Cas
Post Reply

Return to “Layout and Design (CSS & HTML)”