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!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Dear All,
I have written a form statement with order data but need these information to be printed. Can someone tell me if it is possible to print form data in the same format.
[syntax="html"]<form name='frm_user' action="<?php echo $_SERVER['PHP_SELF']; ?>" method='post'>
<table width='100%' border='1' cellpadding='1' cellspacing='2'>
<tr>
<td align="right" bgcolor="#D8C56F"><b>Order No.:</b></td>
<td align="left"><input type="text" name="txt_orderid" size="20" value="<?php echo $result['Num_Cmde']; ?>" READONLY></td>
<td> </td>
<td align="right"><input class="box" name="btnPrint" type="submit" id="btnPrint" value="Print"/></td>
</tr>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
php is executed server-side and has no control over a client-side printer, if that is your question.
However, the user can of course print the html page and you can add a button like