GetSimple Support Forum
Contact form in themes - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Themes (http://get-simple.info/forums/forumdisplay.php?fid=10)
+--- Thread: Contact form in themes (/showthread.php?tid=1356)



Contact form in themes - Connie - 2011-03-02

I am astonished and have a question:

I tested some themes. Some come with contact.php, f.e. WatchThis or InsAcademy

When I use the contact-template for a contact site, I get the following situation:

1) there are 2 contact forms
2) the captcha shows the string which should be entered in CapitalLetters, but exprects them in lowletters

3) the second form below the first one shows a input-field, which is not self-explanatory:
I assume it is created by
Code:
<p class="pot" ><input class="text" type="text" value="" name="contact[pot]" /></p>

What is the sense of this input field?

4) the code in the contact.php is mostly:

Code:
<form action="<?php get_page_url(); ?>" method="post" class="contactform" >
                    <p><?php set_contact_page(); ?></p>
                    <p><label>Name:</label> <input class="text" type="text" value="<?php print($_POST['contact']['name']); ?>" name="contact[name]" /></p>
                    <p><label>Email:</label> <input class="text" type="text" value="<?php print($_POST['contact']['email']); ?>" name="contact[email]" /></p>
                    <p><label>Subject:</label> <input class="text" type="text" value="<?php print($_POST['contact']['subject']); ?>" name="contact[subject]" /></p>
                    <p><label>Message:</label> <textarea class="text" name="contact[body]" ><?php print($_POST['contact']['body']); ?></textarea></p>
                    <p class="pot" ><input class="text" type="text" value="" name="contact[pot]" /></p>
                    <p><input type="submit" value="Send Email" id="contact-submit" name="contact-submit" /></p>
                </form>

when I take out
Code:
<p><?php set_contact_page(); ?></p>
there is only one form left...

I do not find that "set_contact_page() in the docs (ihttp://get-simple.info/docs/theme-codex/)

Now, please tell me how the contact form is correct?

Any help/insight would be great!

Cheers, Connie


Contact form in themes - ccagle8 - 2011-03-02

Connie Wrote:I do not find that "set_contact_page() in the docs (ihttp://get-simple.info/docs/theme-codex/)

Sorry about that theme [WatchThis] - it's outdated. GetSimple does not come shipped with a contact forum anymore as it was buggy and turning it into a plugin was a much better idea. I will fix today in the repository.

Your best bet is to use the p01-contact plugin as it is the best one available.


Contact form in themes - Connie - 2011-03-02

Chris,

thanks for the info!

There are more themes which still come with the contact.php and outdated form..

so I wil not use these and add the plugin

Cheers, Connie


Contact form in themes - jawzz88 - 2011-03-21

thanks for sharing.... thanks again