Jump to content

[SOLVED] passing values through url


sushantkaura

Recommended Posts

hey guys ,

i have a lil problem .

 

i have 2 php pages in which value has to be passed between the two

the function open_win() is used to open the page in a new window and is defined above the code as it is a java script . 

 

a.php

................

function open_win()

{

window.open("player.php?songId=<?=$songid?>")

}

 

 

 

 

 

$songid=$row['Cid'];

echo "<td>"?><input type=button value="Listen" onClick="open_win()"/><?php "</td>";

 

 

.......................

second page

player.php i m typing

 

.......................

 

 

 

$sid=$_GET["songId"];

echo "$sid";

 

 

.......................

 

i have done like this but in player.php it is not echoing the value and not even in the url of the next window,

 

is it the rite way to id ? i think i m doing something wrong .

plz tell me the rite way to do it.

sushant

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.