• I have a contact from on one page and I want to have another one on another page with different fields.

    Is that possible?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter weeble

    (@weeble)

    (a contact form with different fields that is)

    Thread Starter weeble

    (@weeble)

    anyone?

    Anything is possible grasshopper.

    Are you using the WP-ContactForm plugin? You could modify it easily enough to have different fields, the only problem is that all the fields are in the plugin code. Nothing goes on the page except <!--contact form--> so you really can only have one setup per blog. Possibly you could create a slightly altered second version of the plugin, with all the functions renamed, etc., but it might be just as easy to just go get a copy of formmail.php or a similar script and create a static page with the form you want.

    Weeble, the reason you didn’t get a response earlier is that when you replied to your own post with “(a contact form with different fields that is)” it looked like your question had already been answered by somebody named “weeble”.

    Thread Starter weeble

    (@weeble)

    I’m using WP-ContactForm.php

    Which functions should I rename?

    You’d need to get into the guts of it and figure it out. There are two files in that plugin, so first you’d have to make a copy of each with a slightly different name. Then you’d have to go into each one and make sure that any functions use the modified files and not the originals. Then, last but not least, you’ll need to make it so the second form is called by something different like <!--contact form2--> instead of <!--contact form-->. I think it would be a lot simpler to go get a copy of formmail.php and build a static page with a form that uses formmail.

    https://www.dtheatre.com/scripts/formmail.php

    https://www.ads-software.com/support/topic/38807 – for information on how to create a page that uses the WordPress theme outside the WP post/page structure. (Because formmail.php won’t run inside a WP Post or Page.)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Contact form on two pages?’ is closed to new replies.