User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,369 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,034 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 3962 | Replies: 2
Reply
Join Date: Dec 2006
Posts: 10
Reputation: azarudeen is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
azarudeen azarudeen is offline Offline
Newbie Poster

how to pass the value in popup window

  #1  
Jan 16th, 2007
hai to all,
i think its a simple only but i am not having clear idea how to pass the value from an page into an popup window in a javascript in php.if any ones knows or get any idea means plz post quicklywith an example


thank u,
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2006
Posts: 138
Reputation: php_daemon is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
php_daemon php_daemon is offline Offline
Junior Poster

Re: how to pass the value in popup window

  #2  
Jan 16th, 2007
window.open('page.php?param1=value1','name1','height=320,width=240');

Once you output the link to the pop-up you can output the variables in the url.

  1. $value1=urlencode('some value');
  2. echo "<a href=\"javascript:window.open('page.php?param1=$value1','name1','height=320,width=240');\">pop-up</a>";
Reply With Quote  
Join Date: Dec 2006
Posts: 10
Reputation: azarudeen is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
azarudeen azarudeen is offline Offline
Newbie Poster

Re: how to pass the value in popup window

  #3  
Jan 17th, 2007
hi,

Thank u for your kind reply its working
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 12:14 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC