[Plugin: Contact Form 7] – php inside textarea
-
Hey WordPressers,
I am trying to use some php-code inside the textarea, but it doesn’t work. The output is just plain text.
Sorry, but i am working in xampp so i dont have a example.The php inside the form is:
<textarea cols="40" rows="6"> <?php if(isset($_POST['naar-mail'])) { for ($i=0; $i<count($_POST['kiespostcode']);$i++) { echo "postcode: ".$_POST['kiespostcode'][$i] . "\n"; } } ?> </textarea>
I already removed all line-breaks, and i have tried to find a solution on the Internet. But no luck.
It does work outside Contact Form 7 though.I hope somebody can help.
ps: the script retrieves checkboxes values form a previous page after submit.
- The topic ‘[Plugin: Contact Form 7] – php inside textarea’ is closed to new replies.