i have a standard html form with some php inserts but i want to have a text link that will print just the text in the text boxes. so what i want to do is open another window and in that other window i will have some tables that will format the data where i need it so i will get the data with $_POST on that page but i dont know have to structure the print link in the original page. below is my html form
Code:<form action="SavedTicket.php" name="new1" target="_self" method="post" onSubmit="return checkbae()"> <table width="25%" align="center"> <tr> <!-- Row 1 Column 1 --> <td><span class="style14"></span> <input name="TicketNumber" type="hidden" id="TicketNumber" value="<?php echo $TicketNumber; ?>" maxlength="30" /> </td> </tr> <tr> <!-- Row 1 Column 1 --> <td><span class="style14"><b>Record #: <?php echo $TicketNumber; ?></b></span></td> </tr> <tr> <!-- Row 1 Column 1 --> <td><span class="style14"><b><?php echo $UnitChangedTo; ?>:</b></span><br /> <input name="unitnumber" type="text" id="unitnumber" value="<?php echo $unitnumber; ?>" maxlength="30" /> </td> </tr> <tr> <!-- Row 1 Column 1 --> <td><span class="style14">Call-In Date:</span><br /> <script>DateInput('callindate', true, 'YYYY-MM-DD', '<?php echo $callindate; ?>')</script> </td> </tr> <tr> <!-- Row 1 Column 1 --> <td><span class="style14"><b>Completed Date:</b></span><br /> <?php if($completeddate == "0000-00-00"): ?> <script>DateInput('completeddate', false, 'YYYY-MM-DD')</script> <?php else: ?> <script>DateInput('completeddate', false, 'YYYY-MM-DD', '<?php echo $completeddate; ?>' )</script> <?php endif; ?> </td> </tr> <tr> <!-- Row 2 Column 1 --> <td><span class="style14"><b><?php echo $namedchangedto; ?>:</b></span><br /> <input name="customername" type="text" id="customername" value="<?php echo $customername; ?>" maxlength="30" /> </td> </tr> <tr> <!-- Row 3 Column 1 --> <td><span class="style14"><b><?php echo $phonechangedto; ?>:</b></span><br /> <input name="phone" type="text" id="phone" value="<?php echo $phone; ?>" maxlength="30" /> </td> </tr> <tr> <!-- Row 3 Column 1 --> <td><span class="style14"><b>Email When Ticket is Completed & Closed:</b></span><br /> <input name="emailwhendone" type="text" id="emailwhendone" value="<?php echo $emailwhendone; ?>" size="40" maxlength="100" /></td> </tr> <tr> <!-- Row 3 Column 1 --> <td><span class="style14"><b>Assigned To:</b></span><br /> <input name="assignedto" type="text" id="assignedto" value="<?php echo $assignedto; ?>" size="40" maxlength="40" /></td> </tr> <tr> <!-- Row 3 Column 1 --> <td><span class="style14"><b>Address:</b></span><br /> <input name="address" type="text" id="address" value="<?php echo $address; ?>" size="35" maxlength="120" /> <img src="images/garmin.jpg" alt="Click here to open a Google map of the entered address" name="imageID" width="24" height="24" id="imageID"></td> </tr> <tr> <!-- Row 4 Column 1 --> <td><span class="style14"><b>Work to be Completed:</b></span><br /> <textarea name="worktobedone" cols="40" rows="6" id="worktobedone"><?php echo $worktobedone; ?></textarea></td> </tr> <tr> <!-- Row 4 Column 1 --> <td><span class="style14"><b>Work Completed:</b></span><br /> <textarea name="workcompleted" cols="40" rows="6" id="workcompleted"><?php echo $workcompleted; ?></textarea></td> </tr> <tr> <!-- Row 5 Column 1 --> <td><div align="center"> <input name="Save" type="Submit" value="Save" /> </div></td> </tr> </table> </form>




Reply With Quote