--- Karl-Heinz Schulz <[EMAIL PROTECTED]> wrote:

> Zareef,
> 
> Thank you for the reply but I may was not very
> clear.
> 
> I don't know how to pass the record id from the
> view_record?id=1 to
> print_record?=whateverTheViewRecordId was.
>
 
Consider it

$id="select id from database"

<?php
print "<a
href='http://www.test.com/docs/view_record.php?id=".$id.";'
target='_blank'> click tio print </a>";
?>

or you may write javasctipt function too.

zareef ahmed

> Karl-Heinz 
> 
> -----Original Message-----
> From: zareef ahmed [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 28, 2004 11:03 PM
> To: Karl-Heinz Schulz; [EMAIL PROTECTED]
> Subject: Re: [PHP] Java Script or PHP
> 
> 
> --- Karl-Heinz Schulz <[EMAIL PROTECTED]>
> wrote:
> 
> > I have a database generated page and I want to
> show
> > a "Print Version" in a
> > new window when somebody selects the print option.
> > 
> > http://www.test.com/docs/view_record.php?id=1
> > 
> > http://www.test.com/docs/print_record.php?id=1
> > 
> > What is the "correct" way to open the page from
> the
> > print link to a new
> > page?
> 
> To Open a New Window you can use javascript
> window.open or just set target="_blank" in your
> anchor
> tag (<a>).
> 
> But you may need to adjust the properties of new
> windows like status bar, toolbar, width, height; for
> this you can use java script.
> 
> PHP Can not do client side programming...
> 
> 
> zareef ahmed
> 
> 
> > 
> > TIA
> > 
> > 
> > 
> > Tracking #:
> BF4D827C022BDF46A46EC4E1BF3527362158E8A1
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > 
> > 
> 
> 
> =====
> Zareef Ahmed :: A PHP Developer in Delhi(India).
> Homepage :: http://www.zasaifi.com
> 
> 
>               
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail 
> 
> 
> 


=====
Zareef Ahmed :: A PHP Developer in Delhi(India).
Homepage :: http://www.zasaifi.com


                
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to