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? Quote 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']; ?> Quote 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. Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/253891-syntax-question/#findComment-1301619 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.