sayedsohail Posted May 14, 2007 Share Posted May 14, 2007 Hi all, I need some help, in regards to storing $id value into session variable and using in new window, at the moment i am using get statement to capture record id in edit window. any help will be greatly appreciated. I am not sure how to do this, since i got a long list of records in my database. while(list($id, $name) = mysql_fetch_array($result)) { print "<tr> <td>$name</td> <TD><img OnClick="window.open('edit_client.php?rec_No='+ $id)"></td> </tr>"; } Quote Link to comment https://forums.phpfreaks.com/topic/51296-session-store-datagrid-record-value-in-session-and-onclick-pass-to-new-window/ Share on other sites More sharing options...
neel_basu Posted May 14, 2007 Share Posted May 14, 2007 Although I didn't understand your Question Clearly. One thing you have to remember that Sessions are Server side Javascript cant do anything with Sessions. It can only handle Cookies. Quote Link to comment https://forums.phpfreaks.com/topic/51296-session-store-datagrid-record-value-in-session-and-onclick-pass-to-new-window/#findComment-252636 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.