I want to set id of a form by php, but i can't do it!
<?php
$form= $_GET['form'];
echo"
<form id='$form' class='thisForm form' method='post'>
<input type ='text' name='name'/>
</form>"; ?>
the output is :
<form id="" class="thisForm form" method="post">
I have found something, when I use inspect element of browser the id is empty string, but when use page source the id is not empty! And when I want to get the id by jQuery it is empty too!