• epg

    (@epg)


    I’d like to add one line of php code to my form. I am using the random Image widget plugin and basically I’d like to add a random image to my form.

    The random image widget allows me to just add the line:

    <?php echo_random_image(); ?>

    Anywhere on my template and a random image appears as advertised.

    But when I try to add this line of code inside my Contact Form 7, it appears that it somehow gets stripped out or something.

    I mean I can add plain html to the Contact Form, right? So why can’t I also add php?

    Or am I doing something wrong?

    Be easy, I’m a php/html newbie here…

    Thanks!

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

Viewing 1 replies (of 1 total)
  • jsoutest

    (@jsoutest)

    I am not sure, but according to how the plugin is written, I wonder that adding PHP code should be done out of the form (usually after) by using some EXEC PHP plugin.
    I don’t know how to use back the user data he fill in.
    Save data option is missing or I don’t know how to do.
    May be you have an idea?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Contact Form 7] Adding php code to form’ is closed to new replies.