WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Do tables affect Contact Form 7? (4 posts)

  1. trullinger
    Member
    Posted 5 years ago #

    I'm using the plugin Contact Form 7, and for some reason whenever I click "submit," I get an error message that says the form can't be sent. I've sent emails to the address the form is directed to go to, so I don't think it's a server issue. I've heard WordPress doesn't always play nice with tables - do you think that could affect the form?

    Here's the website:
    http://trullingerphotography.com/blog/contact/

    And here's the code I'm using for the plugin:

    <table width="600" border="0" cellspacing="5" cellpadding="0">
    <tr><td width="30%">Name:</td>
    <td width="70%">[text* contact-name class:form]</td></tr>
    <tr><td>Email:</td>
    <td>[email* email class:form]</td></tr>
    <tr><td>Phone:</td>
    <td>[text area 4/3 class:form "859"]-[text phone1 4/3 class:form]-[text phone2 5/4 class:form]</td></tr>
    <tr><td>I'm interested in:</td>
    <td>[select photo-type include_blank "Engagements" "Wedding Photography" "Portraits" "Maternity Session" "Newborn Session" "Pet Photography"]</td></tr>
    <tr><td valign="top">Anything else?</td>
    <td>[textarea any-else class:form]</textarea></td>
    </tr>
    </table>
    
    <p>[submit "Send"]</p>
  2. trullinger
    Member
    Posted 5 years ago #

    Well, I took the form out of the tables, and it didn't fix anything... so I'm officially stumped. Any thoughts?

  3. esmi
    Forum Moderator
    Posted 5 years ago #

    Yes - try using the shortcode that Contact Form 7 creates for each form. It's at the top of the Contact Form 7 page - just under the form title.

  4. trullinger
    Member
    Posted 5 years ago #

    I'm sorry, I should have been clearer - I was actually using the shortcode, I just figured it would be helpful to see the actual code I was putting into Contact Form.

    As it turns out, the problem wasn't with my coding - it's with my hosting company. Yahoo won't let non-domain emails send things through a PHP script, so in order for Contact form to work, I think (ha!) I just need to put my email in the "from" field.

    If anyone is using Yahoo hosting, the answer is here:
    http://help.yahoo.com/l/us/yahoo/smallbusiness/webhosting/php/php-28.html

Topic Closed

This topic has been closed to new replies.

About this Topic