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:

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>";

hi,

Thank u for your kind reply its working

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.