I want to include
action="<?php echo $_SERVER['PHP_SELF']; ?>"
in $render_form variable. But the following code does not work:
<?php $render_form = '<form method="post" action="<?php echo
$_SERVER['PHP_SELF']; ?>">
<input type="text" name="name">
<br>
<input type="submit" name="submit" value="Submit Form">
<br>
</form>';
?>
The following code (without php tag) works:
<?php $render_form = '<form method="post" action="">
<input type="text" name="name">
<br>
<input type="submit" name="submit" value="Submit Form">
<br>
</form>';
?>