Cannot Open Another Page
Posted: Thu Dec 08, 2011 8:04 pm
Hi, maybe this seems like a simple question but I been working on this for weeks.I can't seem to make the "Print" button open the printpdf.php page, instead it open the searchschoolsthis2.php. How can i make the print button button open the printpdf.php? Your help is much appreciated. Below are part of the code.
Code: Select all
<form method="post" action="searchschoolsthis2.php">
<input type="hidden" name="submitted" value="true" />
<label><span class="style2">Choose Category:</span>
<span class="style1">
<select name="category">
<option value="state">State</option>
<option value="district">District</option>
<option value="code">Code</option>
</select>
</span></label>
<span class="style1">
<span class="style2">Type in your Criteria
<label>:</label>
</span>
<label>
<input type="text" name="criteria" onKeyUp="this.value = this.value.toUpperCase();"/>
</label>
<input type="submit" value="Find" />
</span>
<form action="printpdf.php" method="post" name="print" target="_blank" id="print">
<input type="submit" name="print" id="print" value="Print" />
</form>
</form>