• I have a website running with and without wordpress: https://www.fluid-plumbing.co.uk/ – on all pages I have added a jQuery/AJAX drop down contact form which works great in the non-wordpress areas, (not so in the wordpress bit: https://www.fluid-plumbing.co.uk/news-and-tips/ )I have also added this form manually to the header.php template file.

    I have used a <?php include();?> to add the form, the form is working ok in itself, but the trouble comes when it goes to get/post the data. Upon submission the form is supposed to call a file called “process.php”, I have referenced it in the template file.

    I am hoping that someone may be able to see what the problem is, I have a feeling it will be something simple like a path or something but I have tried and failed with all the normal methods I use to test and troubleshoot.

    Any help will be appreciated

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter Morgan Feeney

    (@mofeenster)

    That’s interesting… ok then so that sounds do-able, how can I use the same code in a non-wp site, is this something you know how to do?

    If you don’t want to use iframes, I guess your could copy/paste the HTML generated by the plugin and insert it in your non-WP pages. You could still use a PHP include in that case.

    Hi mofeenster,
    where you able to make this work?
    Cheers!

    M

    Thread Starter Morgan Feeney

    (@mofeenster)

    Gonna give it a try now so let’s see…

    Hi!
    Were you able to make any progress on this?

    Thread Starter Morgan Feeney

    (@mofeenster)

    Yeah, I added contact form7 to the header.php file so it is on all WP pages. Got the jQuery working, although I don’t know at this point how to make the form automatically slide up upon submission – is this something you would know by any chance?

    Just got to style the validation messages, then will have a look at adding it to the non-WP parts.

    Great news!
    As for defining an action upon form submission event, you can check out this Stack Overflow thread: it might put you in the right track.

    Thread Starter Morgan Feeney

    (@mofeenster)

    Thanks for your help Marventus, I will get round to trying to add the outputted html of contact form 7 asap, just a bit busy sorting some SEO. I will let you know how it goes.

    I’m going to use your technique for css3 rollovers with sprites now.

    Cheers

    Ok. Thanks for keeping me posted!
    I hope it works.
    LMK if you need anything else.

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Why is my php form not working?’ is closed to new replies.