WordPress.org

Forums

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

  1. Marco Panichi
    Member
    Posted 2 years 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 2 years 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 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic