reset button not working

Giganews Newsgroups
Subject: reset button not working
Posted by:  kashif_khan (kashifkhan12…@gmail.com)
Date: 28 Jul 2006

hi everyone,
                    can anybody please tell me why reset button is not
working in the following code, i tested it in opera, firefox and
konqueror,

<form action='edit_links.php' method='POST' name='save_links'
id='save_links'>

    <table cellpadding='5'>

        <caption align='top'>Edit your Top website links</caption>

        <tr>

        <th width='12' align='center'>Rank</th>

        <th width='50' align='center'>Title</th>

        <th width='50' align='center'>Website Address</th>

        </tr>

        <tr>

        <td width='12' align='center'>1</td>

        <td width='50' align='center'><input type='text' id='title1'
maxlength='300' size='40' value='Search the web'/> </td>

        <td width='50' align='center'><input type='text' id='link1'
maxlength='300' size='40' value='www.google.com'/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>2</td>

        <td width='50' align='center'><input type='text' id='title2'
maxlength='300' size='40' value='mail and games'/> </td>

        <td width='50' align='center'><input type='text' id='link2'
maxlength='300' size='40' value='www.yahoo.com'/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>3</td>

        <td width='50' align='center'><input type='text' id='title3'
maxlength='300' size='40' value='homepage'/> </td>

        <td width='50' align='center'><input type='text' id='link3'
maxlength='300' size='40' value='www.kashifkhan.net'/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>4</td>

        <td width='50' align='center'><input type='text' id='title4'
maxlength='300' size='40' value='Company website'/> </td>

        <td width='50' align='center'><input type='text' id='link4'
maxlength='300' size='40' value='www.k12isys.com'/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>5</td>

        <td width='50' align='center'><input type='text' id='title5'
maxlength='300' size='40' value='Company website'/> </td>

        <td width='50' align='center'><input type='text' id='link5'
maxlength='300' size='40' value='www.kgamerworld.com'/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>6</td>

        <td width='50' align='center'><input type='text' id='title6'
maxlength='300' size='40' value=''/> </td>

        <td width='50' align='center'><input type='text' id='link6'
maxlength='300' size='40' value=''/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>7</td>

        <td width='50' align='center'><input type='text' id='title7'
maxlength='300' size='40' value=''/> </td>

        <td width='50' align='center'><input type='text' id='link7'
maxlength='300' size='40' value=''/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>8</td>

        <td width='50' align='center'><input type='text' id='title8'
maxlength='300' size='40' value=''/> </td>

        <td width='50' align='center'><input type='text' id='link8'
maxlength='300' size='40' value=''/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>9</td>

        <td width='50' align='center'><input type='text' id='title9'
maxlength='300' size='40' value=''/> </td>

        <td width='50' align='center'><input type='text' id='link9'
maxlength='300' size='40' value=''/> </td>

        </tr>

        <tr>

        <td width='12' align='center'>10</td>

        <td width='50' align='center'><input type='text' id='title10'
maxlength='300' size='40' value=''/> </td>

        <td width='50' align='center'><input type='text' id='link10'
maxlength='300' size='40' value=''/> </td>

        </tr>

        <br /> <br />

        <tr>

        <td width='12' align='left'>&nbsp;</td>

        <td width='50' align='right'><input type="submit" value="Save
Changes" /></td>

        <td width='50' align='right'><input type="reset" value="Clear All"
/></td>

        </tr>

    </table>

</form>

sorry for the long listing, but i think it was neccessary.

kashif khan

Replies