I have a gravityform for my users to order voucher codes with. I store the voucher codes in a separate table of my wordpress DB. When a user submits the form, there should be an email immediately send to them with a code in it. I could use another plugin for that or write an own solution, but then the form does not feel, look and behave the same way other forms on my website do. Also the form data does not get stores in Gravaty's statistic.
I tried to put a SQL query in the message box of "Notification to User". But this code is not executed and just printed out:
<?php $sq = "SELECT code FROM vouchers WHERE used<>'yes' LIMIT 1"; $query = mysql_query($sq); $dsatz = mysql_fetch_assoc($query); echo $dsatz['code']; ?>
I tried to find and hack the place in the plugin files where this codes gets escaped. Couldn't find it.
Can you point me to that place and give me a hint how to archive that?