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

  1. trullinger
    Posted 6 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:

    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>
    <td>[email* email class:form]</td></tr>
    <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>
    <p>[submit "Send"]</p>
  2. trullinger
    Posted 6 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 6 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
    Posted 6 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:

Topic Closed

This topic has been closed to new replies.

About this Topic