Ready to get started?Download WordPress


How to use formmail.pl with wordpress ? (6 posts)

  1. bugsmi0
    Posted 7 years ago #

    for some unknown reason it doesn't want to work with wordpress i have it set up as a page template

  2. Joshua Sigar
    Posted 7 years ago #

    A file with extension ".pl" won't be recognized as a page template in WP. What's the content of that file? If it's a valid WP page template then you could probably just rename the file to "formmail.php."

    Related: http://codex.wordpress.org/Pages#Page_Templates

  3. bugsmi0
    Posted 7 years ago #

    its a cgi script that the form gets directed to so its not a page per say, it works outside of wp just not inside

    the page template is where the form is then as you hit the submit button the form gets directed via the action="formmail.pl

  4. Joshua Sigar
    Posted 7 years ago #

    So, what happens when you click the submit button? Nothing? The page just refreshes?

    Could you paste the page template? http://wordpress.pastebin.ca/

  5. bugsmi0
    Posted 7 years ago #

    when you click the form it gets directed to the cgi/formmail.pl script but then the server says page not found, guess wp and .pl files don't mix well, i got it to work by using the alternative formmail.php the sister version of formmail.pl it works with wp

  6. doodlz
    Posted 7 years ago #

    I'm new to PHP and am trying to create a form on my site which uses WP as a CMS.

    Bugsmio, may I ask how you installed formmail.php in wordpress in order for it to be read? I heard you're not supposed to put it in your cgi-bin. Sorry if this is a dumb question.

    Also, did you use a separate page template (than other pages, say) to create the form?

    I'm a bit confused. Let me know if you or anyone else can help.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.