954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to pass the value in popup window

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,:idea:

azarudeen
Newbie Poster
10 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 
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.

$value1=urlencode('some value');
echo "<a href=\"javascript:window.open('page.php?param1=$value1','name1','height=320,width=240');\">pop-up</a>";
php_daemon
Junior Poster
140 posts since Aug 2006
Reputation Points: 13
Solved Threads: 2
 

hi,

Thank u for your kind reply its working

azarudeen
Newbie Poster
10 posts since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You