luvgal
01-31-2007, 02:44 PM
hi
im wondering how i can do this? when i clicked on the selected checkboxes and press submit button then the subcategory of a checked checkbox is output on the next html page. basically i have set the 2nd html page to be hidden first.. so that the not selected checkbox on the previous page that is not clicked will not show up.. can u please help me out with the javascript on how to link this two pages together? thanks..
this is just an example of what i wanna do:
the first html:
<html>
<form id="FClass" name="FClass" method="get" action="testing2.html">
<body>
<input type="checkbox" name="132" "/>
<strong> 132</strong></p>
<p>
<input type="checkbox" id='138' name="checkbox" />
<strong>138</strong></p>
<p>
<input type="checkbox" id='139' name="checkbox" />
<strong>139</strong></p>
<p><strong>
<input type="submit" name="Submit" value="Submit">
</body>
</form>
</html>
the 2nd html:
<div id="132" style="display:none;">
<p>
<strong> 132</strong></p>
<blockquote>
<p align="left"> <em><strong>No:</strong></em>
<select name="132" id='132'>
<option value="0">0</opton>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</p>
</blockquote>
</div>
<div id='138' style="display:none;">
<p>
<strong>138 </strong></p>
<blockquote>
<p><em><strong>No:</strong></em>
<select name="138" id="138">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
</p>
</blockquote>
<p>
</div>
<div id="139" style="display:none;">
<strong>138</strong></p>
<blockquote>
<p><em><strong>No:</strong></em>
<select name="139" size="1" id="139">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</p>
</blockquote>
</div>
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
im wondering how i can do this? when i clicked on the selected checkboxes and press submit button then the subcategory of a checked checkbox is output on the next html page. basically i have set the 2nd html page to be hidden first.. so that the not selected checkbox on the previous page that is not clicked will not show up.. can u please help me out with the javascript on how to link this two pages together? thanks..
this is just an example of what i wanna do:
the first html:
<html>
<form id="FClass" name="FClass" method="get" action="testing2.html">
<body>
<input type="checkbox" name="132" "/>
<strong> 132</strong></p>
<p>
<input type="checkbox" id='138' name="checkbox" />
<strong>138</strong></p>
<p>
<input type="checkbox" id='139' name="checkbox" />
<strong>139</strong></p>
<p><strong>
<input type="submit" name="Submit" value="Submit">
</body>
</form>
</html>
the 2nd html:
<div id="132" style="display:none;">
<p>
<strong> 132</strong></p>
<blockquote>
<p align="left"> <em><strong>No:</strong></em>
<select name="132" id='132'>
<option value="0">0</opton>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</p>
</blockquote>
</div>
<div id='138' style="display:none;">
<p>
<strong>138 </strong></p>
<blockquote>
<p><em><strong>No:</strong></em>
<select name="138" id="138">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
</p>
</blockquote>
<p>
</div>
<div id="139" style="display:none;">
<strong>138</strong></p>
<blockquote>
<p><em><strong>No:</strong></em>
<select name="139" size="1" id="139">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</p>
</blockquote>
</div>
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>