Skip to main content
added 67 characters in body
Source Link
user21926
user21926
    <html>
    <head>
    <script>
        function showUser()
        {
            for (var i=0;i i<10;= 0; i < 10; i++)
            {
                var internal = document.getElementById("inte[i]").value;   /* but its not working  */   
            
     var external = document.getElementById("exte[i]").value;
    }
        }
    </script>
    }
    </head>script>
    </head>
    <body>
    <?php 
        for (i=0;i i<10;= 0; i < 10; i++)
        {
            echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
            echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
        }
        echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";
 
    ?>
    </body>
    <html>

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

    <html>
    <head>
    <script>
    function showUser()
    {
    for (var i=0; i<10; i++)
    {
    var internal = document.getElementById("inte[i]").value;   /* but its not working  */              
     var external = document.getElementById("exte[i]").value;
    }
    }
    </script>
        </head>
        <body>
    <?php 
    for (i=0; i<10; i++)
    {
    echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
    echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
    }
    echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";
 
    ?>
    </body>
    <html>

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

<html>
    <head>
    <script>
        function showUser()
        {
            for (var i = 0; i < 10; i++)
            {
                var internal = document.getElementById("inte[i]").value;   /* but its not working */ 
                var external = document.getElementById("exte[i]").value;
            }
        }
    </script>
    </head>
    <body>
    <?php 
        for (i = 0; i < 10; i++)
        {
            echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
            echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
        }
        echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";
    ?>
    </body>
<html>

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

added 2 characters in body
Source Link
    <html>
    <head>
    <script>
    function showUser()
    {
    for (var i=0; i<10; i++)
    {
    var internal = document.getElementById("inte[i]").value;   /* but its not working  */              
    var external = document.getElementById("exte[i]").value;
    }
    }
    </script>
        </head>
        <body>
    <?php 
    for (i=0; i<10; i++)
    {
    echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
    echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
    }
    echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";

    ?>
    </body>
    <html>

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

    <html>
    <head>
    <script>
    function showUser()
    {
    for (var i=0; i<10; i++)
    {
    var internal = document.getElementById("inte[i]").value;   /* but its not working                
    var external = document.getElementById("exte[i]").value;
    }
    }
    </script>
        </head>
        <body>
    <?php 
    for (i=0; i<10; i++)
    {
    echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
    echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
    }
    echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";

    ?>
    </body>
    <html>

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

    <html>
    <head>
    <script>
    function showUser()
    {
    for (var i=0; i<10; i++)
    {
    var internal = document.getElementById("inte[i]").value;   /* but its not working  */              
    var external = document.getElementById("exte[i]").value;
    }
    }
    </script>
        </head>
        <body>
    <?php 
    for (i=0; i<10; i++)
    {
    echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
    echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
    }
    echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";

    ?>
    </body>
    <html>

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

deleted 14 characters in body
Source Link
Snake Eyes
  • 16.8k
  • 39
  • 120
  • 234
    <html>
    <head>
    <script>
    function showUser()
    {
    for (var i=0; i<10; i++)
    {
    var internal = document.getElementById("inte[i]").value;   /* but its not working                
    var external = document.getElementById("exte[i]").value;
    }
    }
    </script>
        </head>
        <body>
    <?php 
    for (i=0; i<10; i++)
    {
    echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
    echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
    }
    echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";

    ?>
    </body>
    <html>
 
    i am using the above code but i cant get 10 values of different textboxes

howi am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

  i am using the above code but i cant get 10 values of different textboxes

howi am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

    <html>
    <head>
    <script>
    function showUser()
    {
    for (var i=0; i<10; i++)
    {
    var internal = document.getElementById("inte[i]").value;   /* but its not working                
    var external = document.getElementById("exte[i]").value;
    }
    }
    </script>
        </head>
        <body>
    <?php 
    for (i=0; i<10; i++)
    {
    echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
    echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
    }
    echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";

    ?>
    </body>
    <html>
 
    i am using the above code but i cant get 10 values of different textboxes

how to fetch these value through java script and i want to save it to database kindly help me

  i am using the above code but i cant get 10 values of different textboxes

how to fetch these value through java script and i want to save it to database kindly help me

    <html>
    <head>
    <script>
    function showUser()
    {
    for (var i=0; i<10; i++)
    {
    var internal = document.getElementById("inte[i]").value;   /* but its not working                
    var external = document.getElementById("exte[i]").value;
    }
    }
    </script>
        </head>
        <body>
    <?php 
    for (i=0; i<10; i++)
    {
    echo "<td><input type='text' name='internal' id = 'inte[$i]' width='30'/> </td>";
    echo "<td><input type='text' name='external' id = 'exte[$i]' width='30'/> </td>";
    }
    echo "<td><input type='submit' name='submit1' value='Save Marks' width='30'  onclick = 'showUser()' /></td>";

    ?>
    </body>
    <html>

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

i am using the above code but i cant get 10 values of different textboxes how to fetch these value through java script and i want to save it to database kindly help me

Source Link
Loading