avo Posted April 11, 2006 Share Posted April 11, 2006 HI AllIm sure there is a very easy answer to this one if you can help please what im trying to do is on a reset of a form is echo out "Form Reset" then after 5 seconds echo "" (nothing) but the code bellow make my page sleep for 5 seconds instead and then dont echo a blank space.(remove text Form Reset.[code] <? if ($_POST['subReset']) { echo "Form Reset"; sleep (3); echo "";} else { echo "";}?>[/code]All Help Appriciated. Quote Link to comment https://forums.phpfreaks.com/topic/7124-reset-and-echo-question/ Share on other sites More sharing options...
trq Posted April 11, 2006 Share Posted April 11, 2006 Its never going to work the way you expect without yet another request to the server. All of which are a waste of resources.This would be much better done client side using javascript. Quote Link to comment https://forums.phpfreaks.com/topic/7124-reset-and-echo-question/#findComment-25897 Share on other sites More sharing options...
avo Posted April 11, 2006 Author Share Posted April 11, 2006 HI Thankyou for your replyJust out of curiosity what woukd the code be do this thanks. Quote Link to comment https://forums.phpfreaks.com/topic/7124-reset-and-echo-question/#findComment-25915 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.