PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I have wasted a lot of time but in vain, i have created an array type variable $com and passes it in window.open('index.php?com=<?=$com?>','300','300');. But when i get it on the index.php page and show the result it showed only me the output as 'Array'.
What is the reason for this. For detail i have put the code here.
$qry2="select m.*,m.id as mid,c.* from mos_menu m, mos_categories c
where m.name=c.name and m.parent='".$Itemid."'";
$res2=mysql_query($qry2) or print mysql_error();
$total2=mysql_num_rows($res2);
$m=0;
while($row2=mysql_fetch_object($res2)){
$com2[$m]=$row2->id;
$m++;
}
<input type="button" value="-Compare-"/ onclick="window.open('dummy.php?com31=<?=$com2;?>','300','300');">
/////////////on the index.php page////////////////////
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]2.[/b] Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.[/quote]
Hi,
I am very thankful to you for this, i realy have spent alot of time for this. now your help make it good.
Actually i am doing a different.
There is a form that has a table and a button(on which we have used window.open), and then i have checkboxes that are being developing with the help of query.I want that, after checking the check boxes, when i clink that button the values should be there on that pop page.
How it is possible, i am waiting for your reply.