WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] How to execute PHP code inside the Form / Message Body? (3 posts)

  1. Marco Panichi
    Member
    Posted 9 months ago #

    Hi developers, thank you for this powefull plugin!

    I really need (and I think it could be very nice for all) to execute some php code inside the message body.

    In this way I could send not only the fields submitted by the form, but also lots of useful data:

    • Ip Address of the user
    • Name / URL of the page from the user submitted the form (I'm not using it in just one page)
    • If the user is logged in and with what username
    • Etc...

    I'm surprised by the fact that this feature is not contempled in this such useful plugin!

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 9 months ago #

    I really need (and I think it could be very nice for all) to execute some php code inside the message body.

    No, you can't and shouldn't do so.

    Ip Address of the user
    Name / URL of the page from the user submitted the form (I'm not using it in just one page)
    If the user is logged in and with what username

    Use these functions instead.

  3. Marco Panichi
    Member
    Posted 9 months ago #

    Honestly I've missed those pages.
    Thank you very much...!

Reply

You must log in to post.

About this Plugin

About this Topic