Old 11-04-2005   #1 (permalink)
hmmmmmmm......
 
Join Date: Sep 2005
Posts: 22

page printing help

i have 3 questions,
1. is it possible to print the current page in php?
2. how to print the current page in javascript
3. is it possible to copy parts of the URL in php to use in a script?
any help would be greatly appreciated, thanks
jumbosheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-04-2005   #2 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
1 and 2 :
For me,if i want to create "print" feature,i would create a PHP script that simplify the current page for user to use the print feature on their browser,nothing more
Javascript to print page : [http://www.javascript-page.com/printpage.html ]

3.i dont get you at this question,but i think you want to operating the URL given,just use substr,check it here : http://www.php.net/manual/en/function.substr.php
In case you want to obtain the current URL,use javascript : "document.location"
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-04-2005   #3 (permalink)
hmmmmmmm......
 
Join Date: Sep 2005
Posts: 22

wow, thanks for the great help parasnake!
jumbosheep is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-05-2005   #4 (permalink)
Invicible Snake
 
ParaSnake's Avatar
 
Join Date: Sep 2004
Location: Ho Chi Minh City,Vietnam
Posts: 668

Send a message via MSN to ParaSnake Send a message via Yahoo to ParaSnake
well,the PHP manual at [ http://www.php.net ] is the biggest resources that u can find over the net,check it frequently
__________________
ParaSnake is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-05-2005   #5 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
You will want to use the PHP Manual, it is the best source and most useful reference manual for PHP you can ever use.
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 12-20-2005   #6 (permalink)
I like trees
 
j3ll3's Avatar
 
Join Date: Dec 2005
Location: Belgium
Posts: 12

There is also an other way to print a webpage, ant that is CSS
CSS is used to make your layout for your site, but it can also be used to simplify the webpage when the user hits the print button.

Very easy, just have two kinds of CSS in your <head>
Code:
<link href="webpages.css" rel="stylesheet" type="text/css" />
<link href="print.css" rel="stylesheet" type="text/css"  media="print">
In your print.css you will have to use the display-property: "none" alot.

Here some further information:
http://www.yourhtmlsource.com/styles...ediatypes.html
http://webdesign.about.com/cs/css/a/aa042103a.htm

Good luck
j3ll3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page turning effect madaussie 3D Modelling 5 01-11-2006 12:11 AM
Session problems ibanez270dx HTML / PHP / ASP / JS 3 10-22-2005 08:42 AM
New splash page Rson Showrooms & Works In Progress 17 07-26-2004 11:53 AM
TheCubed website... thecubed Showrooms & Works In Progress 21 06-28-2004 11:32 PM


All times are GMT +1. The time now is 04:57 AM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT