Cannot Open Another Page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nielsenN
Forum Newbie
Posts: 17
Joined: Wed Nov 16, 2011 6:46 pm

Cannot Open Another Page

Post by nielsenN »

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>


User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Cannot Open Another Page

Post by twinedev »

You can't have one form inside the other.
nielsenN
Forum Newbie
Posts: 17
Joined: Wed Nov 16, 2011 6:46 pm

Re: Cannot Open Another Page

Post by nielsenN »

How do I correct this? sorry I'm new with php.
nielsenN
Forum Newbie
Posts: 17
Joined: Wed Nov 16, 2011 6:46 pm

Re: Cannot Open Another Page

Post by nielsenN »

Prob solved. Thank you very much!
Post Reply