Jump to content

making a page in printable version..


popodc

Recommended Posts

Using a "Print" button is something that is done with Javascript, not PHP.

What you do want to do is use a seperate CSS file that gets invoked when the page is printed, that way you can make sure that items that are not useful when printed, like navigatioin menus, are not printed.

Please post any questions about using a print button with Javascript in the Javascript section. Any questions about CSS should be posted in the CSS section.

Ken
[code]
$html="html code";
if($_GET[empid]!=)
{
        if($_GET[empid]=="1234")
        {
                echo $html;
        }
}
else
{
        echo "<form action=\"page1.php\" method=\"get\">";
        echo "<input type=\"hidden\" name=\"empid\" value=\"1234\">";
        echo "<input type=\"submit\" value=\"Print\"></form>";
}
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.