WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form with passable parameters (3 posts)

  1. kgagne
    Member
    Posted 6 years ago #

    I'm going to convert to WordPress my current Web site, which has a custom email form written in perl. It protects my email addresses from spammers while allowing me to pass the recipient and subject fields to it via a link. For example, one page of my site might link to this:

    e-mail_form.pl?To_Name=Jeremy+Pallant&Subject=Armored%20Core

    While another links to this:

    e-mail_form.pl?To_Name=Ken+Gagne&Subject=Resident%20Evil

    I've looked at various email form plugins for WordPress and am happy with a few, but haven't found one that offers a similar capability as the above. Perhaps I haven't looked closely enough. Can anyone recommend a plugin that might supply this functionality of different pages linking to the same form but passing different default recipient and subject values?

  2. MichaelH
    Member
    Posted 6 years ago #

    Not sure about meeting all your needs but look at;
    http://www.dagondesign.com/articles/secure-php-form-mailer-script/

  3. kgagne
    Member
    Posted 6 years ago #

    Thanks! That plugin looks promising. Its web documentation suggests:

    Passing values to the form:
    To allow values to be passed directly to the form, all you have to do is change all references of $_POST to $_REQUEST (The REQUEST superglobal contains the values of both POST and GET items)

    I'm not sure I understand how to do that, but the above does seem to suggest it's possible to have varying default recipients based on where the visitor is coming from. I'll work at it... Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic