PHP echo within form
Posted: Fri Aug 06, 2010 7:46 am
If I do <?php echo curPageURL(); ?> the url displays fine. I can not figure out how to make this work within a form that is echoed.
Thanks for the help.
Code: Select all
echo "<form action=\"\">";
echo "<textarea readonly=\"readonly\" onclick=\"this.focus();this.select()\" rows=\"2\" cols=\"40\" style=\"overflow:hidden;\"><?php echo curPageURL(); ?></textarea>";
echo "</form>";