I have a client that has a custom CMS. The HTML contact form page is stored on MySQL table. I need to modify the form and I need to add PHP and MySQL query to the form for populate Combobox with values stored on another table on same DB.
When I try to insert PHP code on that form (on the MySQL table) the php code does not render. For instance if I add
<?php echo "string"; ?>
in the middle of HTML code stored on DB field on browser is rendered:
<!--?php echo "string"; ?-->
so, not shown.
EDIT:
What I have on DB and need to modify is the following:
I have a form stored on DB and one of the inputs is a text-box. That need to be changed to a dropdown menu with the options being populated from one of the DB tables fields. Hence the need to have php and mysql query in the middle of HTML form...