Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contact Us Form Error
#1
Hi There,

Having an issue with my contact us form.

I've inserted the appropriate code into my contact template:
Code:
<form action="<?php get_page_url(); ?>" method="post" class="contactform" >
            <?php set_contact_page(); ?>
            <div><b>Name:</b> <input class="text" type="text" value="<?php if (isset($_POST['contact']['name'])) { print($_POST['contact']['name']); } ?>" name="contact[name]" /></div>
            <div><b>Email:</b> <input class="text" type="text" value="<?php if (isset($_POST['contact']['email'])) { print($_POST['contact']['email']); }?>" name="contact[email]" /></div>
            <div><b>Subject:</b> <input class="text" type="text" value="<?php if (isset($_POST['contact']['subject'])) { print($_POST['contact']['subject']); }?>" name="contact[subject]" /></div>
            <div><b>Message:</b> <textarea class="text" name="contact[body]" ><?php if (isset($_POST['contact']['body'])) { print($_POST['contact']['body']); } ?></textarea></div>
            <div class="pot" ><input class="text" type="text" value="" name="contact[pot]" /></div>
            <div><input type="submit" value="Send Email" id="contact-submit" name="contact-submit" /></div>
        </form>

When i submit no text comes up on the page.

In the html, i get this:
<p class="contactmsg success"></p>

When i turn on debug mode, i see this in the form before submitting:

Notice: Constant GSIMAGEWIDTH already defined in /Applications/MAMP/htdocs/jmhconsulting.com.au/gsconfig.php on line 16
Notice: Constant GSDEBUG already defined in /Applications/MAMP/htdocs/jmhconsulting.com.au/gsconfig.php on line 19
Notice: Undefined variable: i18n in /Applications/MAMP/htdocs/jmhconsulting.com.au/admin/inc/contactform.php on line 53
Notice: Undefined variable: i18n in /Applications/MAMP/htdocs/jmhconsulting.com.au/admin/inc/contactform.php on line 72
Notice: Undefined variable: i18n in /Applications/MAMP/htdocs/jmhconsulting.com.au/admin/inc/contactform.php on line 72
Notice: Undefined variable: i18n in /Applications/MAMP/htdocs/jmhconsulting.com.au/admin/inc/contactform.php on line 102

After i see:
Notice: Constant GSIMAGEWIDTH already defined in /Applications/MAMP/htdocs/jmhconsulting.com.au/gsconfig.php on line 16
Notice: Constant GSDEBUG already defined in /Applications/MAMP/htdocs/jmhconsulting.com.au/gsconfig.php on line 19
Notice: Undefined variable: i18n in /Applications/MAMP/htdocs/jmhconsulting.com.au/admin/inc/contactform.php on line 72
Notice: Undefined variable: i18n in /Applications/MAMP/htdocs/jmhconsulting.com.au/admin/inc/contactform.php on line 72
Notice: Undefined variable: i18n in /Applications/MAMP/htdocs/jmhconsulting.com.au/admin/inc/contactform.php on line 102

What i find, is i cannot echo
i18n['anything']

Which suggests something is wrong with the language file, however i also do not receive an email.
Nothing is too difficult... anything is possible.
'But you tried, and you failed.. the important thing? never try'
Reply


Messages In This Thread
Contact Us Form Error - by crashfellow - 2010-03-04, 23:25:10
Contact Us Form Error - by internet54 - 2010-03-05, 01:40:09
Contact Us Form Error - by Zegnåt - 2010-03-05, 08:40:42
Contact Us Form Error - by crashfellow - 2010-03-05, 09:25:05
Contact Us Form Error - by internet54 - 2010-03-05, 11:16:08
Contact Us Form Error - by ccagle8 - 2010-03-05, 12:22:08
Contact Us Form Error - by crashfellow - 2010-03-05, 12:54:57
Contact Us Form Error - by crashfellow - 2010-03-05, 13:00:05
Contact Us Form Error - by crashfellow - 2010-03-05, 13:19:23
Contact Us Form Error - by internet54 - 2010-03-05, 15:12:39
Contact Us Form Error - by crashfellow - 2010-03-05, 15:16:54
Contact Us Form Error - by crashfellow - 2010-03-05, 15:18:03
Contact Us Form Error - by Zegnåt - 2010-03-05, 19:37:52
Contact Us Form Error - by crashfellow - 2010-03-05, 21:17:14
Contact Us Form Error - by internet54 - 2010-03-06, 01:31:10
Contact Us Form Error - by crashfellow - 2010-03-06, 08:47:48
Contact Us Form Error - by internet54 - 2010-03-06, 08:56:07
Contact Us Form Error - by crashfellow - 2010-03-06, 09:38:55
Contact Us Form Error - by FredK - 2010-03-09, 09:10:07
Contact Us Form Error - by internet54 - 2010-03-09, 16:59:18
Contact Us Form Error - by thkro - 2010-03-09, 20:35:39
Contact Us Form Error - by Zegnåt - 2010-03-09, 23:41:36
Contact Us Form Error - by thkro - 2010-03-09, 23:53:13
Contact Us Form Error - by Zegnåt - 2010-03-09, 23:55:54
Contact Us Form Error - by thkro - 2010-03-10, 00:36:06
Contact Us Form Error - by internet54 - 2010-03-10, 02:19:26
Contact Us Form Error - by internet54 - 2010-03-10, 06:12:49
Contact Us Form Error - by Alex - 2010-03-12, 02:38:22
Contact Us Form Error - by internet54 - 2010-03-12, 03:08:51
Contact Us Form Error - by Alex - 2010-03-12, 07:33:14
Contact Us Form Error - by internet54 - 2010-03-12, 10:05:24
Contact Us Form Error - by Alex - 2010-03-12, 20:40:17
Contact Us Form Error - by internet54 - 2010-03-13, 01:43:03



Users browsing this thread: 2 Guest(s)