ngreenwood6 Posted December 3, 2008 Share Posted December 3, 2008 I am reading through my book and am learning about error handling. There is a section where they make the error this: $error .= "Please+enter+a+movie+name%21%0D%0A"; My question is what does the %21%0D%0A actually do? Link to comment https://forums.phpfreaks.com/topic/135338-solved-help/ Share on other sites More sharing options...
GKWelding Posted December 3, 2008 Share Posted December 3, 2008 Hex codes.... http://www.ascii.cl/htmlcodes.htm Link to comment https://forums.phpfreaks.com/topic/135338-solved-help/#findComment-704915 Share on other sites More sharing options...
GKWelding Posted December 3, 2008 Share Posted December 3, 2008 What I don't think you'll find in that list is "%0D" and "%0A" are carriage return and line feed. Link to comment https://forums.phpfreaks.com/topic/135338-solved-help/#findComment-704918 Share on other sites More sharing options...
ngreenwood6 Posted December 3, 2008 Author Share Posted December 3, 2008 Thanks I get it now. He is doing that so that when you display the error it adds an exclamation point and goes to the next line in case there is another error. Thanks for the help. Link to comment https://forums.phpfreaks.com/topic/135338-solved-help/#findComment-704922 Share on other sites More sharing options...
GKWelding Posted December 3, 2008 Share Posted December 3, 2008 Correct. No probs. Link to comment https://forums.phpfreaks.com/topic/135338-solved-help/#findComment-704923 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.