Okay so i have page1.php which has anchor tags. what i want to happen is that when, for example, Page 2 is clicked it directs to page2.php but also will get data from database and display the data in the textboxes in Page 2. I know that ajax will be needed but thats it. my knowledge of javascript is lagging. thanks in advance for any help!

page1.php:

<html>
<body>

<ul id="tabs">
      <li><a href="page2.php" id="feb">Page 2</a></li>
      <li><a href="page3.php">Page 3</a></li>
</ul>

</body>
</html>

page2.php:

<html>
<body>

<table border="1" rules="groups" cellpadding="10px;" class="tableincome">
        <thead>
            <th>Monthly Salary</th>
            <th></th>
            <th>RM</th>
        </thead>
        <tr>
            <td>Basic Salary</td>
            <td></td>
            <td><center><input type="text" class="feb" placeholder="0" name="febbasic" size="11"></center></td>
        </tr>
        <tr>
            <td>Fixed Allowance</td>
            <td></td>
            <td><center><input type="text" class="feb" placeholder="0" name="feballowance" size="11"></center></td>
        </tr>
        </table>


</body>
</html>

Are these values for a specific person or all people in the database?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.