bgva2005 Posted May 21, 2010 Share Posted May 21, 2010 Hi, I am new with php, html and javascript, I would like to know how people make debugs for html, javascript and PHP all together. here a example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Customer Account Information</title> <script type="text/javascript"> function requestCustomerInfo() { var sId = document.getElementById("txtCustomerId").value; top.frames["hiddenFrame"].location = "GetCustomerData.php?id=" + sId; } function displayCustomerInfo(sText) { var divCustomerInfo = document.getElementById("divCustomerInfo"); divCustomerInfo.innerHTML = sText; } </script> </head> <body> <p>Enter customer ID number to retrieve information:</p> <p>Customer ID: <input type="text" id="txtCustomerId" value="" /></p> <p><input type="button" value="Get Customer Info" onclick="requestCustomerInfo()" /></p> <div id="divCustomerInfo"></div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/202532-how-i-do-a-debug-for-html-javascript-and-php-debug-con-html-javascripphp/ Share on other sites More sharing options...
Mchl Posted May 21, 2010 Share Posted May 21, 2010 For HTML ypu pass it through HTML validator: validator.w3.org/ For JavaScript you use FireBug (or similar tool for browser other than FF) For PHP... there are many tools and options, depending on what your coding style is. The very basic is an IDE with syntax error detection (like NetBeans), and using some sensible form of error handling (that include error logging) Quote Link to comment https://forums.phpfreaks.com/topic/202532-how-i-do-a-debug-for-html-javascript-and-php-debug-con-html-javascripphp/#findComment-1061767 Share on other sites More sharing options...
bgva2005 Posted May 21, 2010 Author Share Posted May 21, 2010 thanks a lot! Quote Link to comment https://forums.phpfreaks.com/topic/202532-how-i-do-a-debug-for-html-javascript-and-php-debug-con-html-javascripphp/#findComment-1061772 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.