In a radion button, I wanted to display the text “tomorrow” and the next mondays of a week as a date. In normal php I would simply use the following for the date:
<?php echo date("d.m.Y",strtotime("next Monday")); ?>
So i tried to integrate that into contact form 7 like this:
[radio datechooser “tomorrow” “<?php echo date(“d.m.Y”,strtotime(“next Monday”)); ?>”]
which (obviously) doesnt work. Does anybody have an idea, how i can resolve this problem?
- The topic ‘[Plugin: Contact Form 7] PHP in body’ is closed to new replies.