amalafrida Posted December 27, 2011 Share Posted December 27, 2011 <form action="<?= $_SERVER['PHP_SELF'] ?>" method="post"> <input type="submit" name="submit" value="Refresh" /> </form> the above works fine for a refresh button ... but does not if I replace <? with <php? Link to comment https://forums.phpfreaks.com/topic/253891-syntax-question/ Share on other sites More sharing options...
WebStyles Posted December 27, 2011 Share Posted December 27, 2011 to replace, you should not use <php? (proper sintaxe is <?php, but you'll also need an echo.) <?php echo $_SERVER['PHP_SELF']; ?> Link to comment https://forums.phpfreaks.com/topic/253891-syntax-question/#findComment-1301576 Share on other sites More sharing options...
amalafrida Posted December 27, 2011 Author Share Posted December 27, 2011 that did it. thanks much. Link to comment https://forums.phpfreaks.com/topic/253891-syntax-question/#findComment-1301577 Share on other sites More sharing options...
peter_anderson Posted December 27, 2011 Share Posted December 27, 2011 that did it. thanks much. Mark the topic as solved, please. Link to comment https://forums.phpfreaks.com/topic/253891-syntax-question/#findComment-1301579 Share on other sites More sharing options...
amalafrida Posted December 27, 2011 Author Share Posted December 27, 2011 SOLVED Link to comment https://forums.phpfreaks.com/topic/253891-syntax-question/#findComment-1301619 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.