Jump to content

How I do a debug for Html, javascript and PHP (debug con HTML, javascrip,php)


bgva2005

Recommended Posts

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>

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.