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

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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: https://codex.www.ads-software.com/Pages#Page_Templates

    Thread Starter bugsmi0

    (@bugsmi0)

    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

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

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

    Thread Starter bugsmi0

    (@bugsmi0)

    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

    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.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to use formmail.pl with wordpress ?’ is closed to new replies.