2010-03-04, 23:25:10
Hi There,
Having an issue with my contact us form.
I've inserted the appropriate code into my contact template:
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.
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.