{"id":13597943,"date":"2020-10-29T17:00:20","date_gmt":"2020-10-29T17:00:20","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/inserting-php-variable-into-html-form\/"},"modified":"2020-10-29T17:00:20","modified_gmt":"2020-10-29T17:00:20","slug":"inserting-php-variable-into-html-form","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/inserting-php-variable-into-html-form\/","title":{"rendered":"Inserting PHP variable into HTML form"},"content":{"rendered":"<p>I have a form opened and closed thourgh PHP shortcodes. This form contains HTML blocks(im using elementor). I want to set a PHP variable for the value of some form inputs but ther PHP code prints out as plain text so the value is &#8220;&lt;?php $whatever ?&gt;&#8221;.<\/p>\n<p>How can I use PHP code there? the form starts after a &lt;?php and ends before ?&gt; so that should be a PHP block.<\/p>\n<p>Sorry for my english feel free to ask if you don&#8217;tudnersand and thank you.<\/p>\n","protected":false},"template":"","class_list":["post-13597943","topic","type-topic","status-publish","hentry","topic-tag-html","topic-tag-php","topic-tag-variable"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13597943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13597943\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13597943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}