Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Contact form
#13
I don't know if it works without mod_rewrite (pretty URLS), but it works with them turned on. This is the standard code that ships with the contact.php template, doesn't look a thing like what you've described above but works flawlessly.

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 print($_POST['contact']['name']); ?>" name="contact[name]" /></div>
                    <div><b>Email:</b> <input class="text" type="text" value="<?php print($_POST['contact']['email']); ?>" name="contact[email]" /></div>
                    <div><b>Subject:</b> <input class="text" type="text" value="<?php print($_POST['contact']['subject']); ?>" name="contact[subject]" /></div>
                    <div><b>Message:</b> <textarea class="text" name="contact[body]" ><?php 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>

NOTE this code that is required for the form to work at all:
Code:
<?php set_contact_page(); ?>
Pixelita Designs
http://www.pixelita.com
Visit Serbia's biggest and best internet forum!
http://www.burek.com
Reply


Messages In This Thread
Contact form - by rhondab - 2009-08-23, 05:09:30
Contact form - by pixelita - 2009-08-23, 11:52:13
Contact form - by pixelita - 2009-08-23, 11:53:25
Contact form - by ccagle8 - 2009-08-23, 11:59:06
Contact form - by pixelita - 2009-08-23, 12:04:02
Contact form - by pixelita - 2009-08-23, 12:06:03
Contact form - by ccagle8 - 2009-08-23, 12:09:52
Contact form - by pixelita - 2009-08-23, 12:10:36
Contact form - by ccagle8 - 2009-08-23, 12:10:52
Contact form - by pixelita - 2009-08-23, 12:50:27
Contact form - by rhondab - 2009-08-23, 21:09:58
Contact form - by Sanddorn - 2009-09-24, 03:57:45
Contact form - by pixelita - 2009-09-24, 04:43:34
Contact form - by Sanddorn - 2009-09-25, 00:21:01
Contact form - by Faramir - 2009-10-02, 22:41:04
Contact form - by ccagle8 - 2009-10-03, 02:37:03
Contact form - by Faramir - 2009-10-03, 06:48:58
Contact form - by Nigel - 2009-12-15, 11:00:01
Contact form - by ccagle8 - 2010-01-02, 06:11:45
Contact form - by internet54 - 2010-01-03, 03:30:05
Contact form - by burdnick - 2010-01-06, 08:02:47
Contact form - by ccagle8 - 2010-01-06, 08:57:15
Contact form - by internet54 - 2010-01-06, 12:39:08



Users browsing this thread: 1 Guest(s)