sending php session variables to flash

teqvjgmcg

New Member
i am currently working on highscore system with php,mysql and flash. everything is done except a few things. i am struck at sending registered users and and guest users to the flash file. since 2 days im working but no luck. actually what my problem is in my highscore system i have provided the score submission to both registered as well as to guest user. if guest registered user submits the score then with the registered username the score should be submitted. whereas if guest submits the score the guest name appears whatever the guest types. i have tried with sessions but im new to this session programming. can anyone provide a small kind of example. please see my code....\[code\]$game_name = $_POST['game_name'];$_SESSION['gamename'] = $game_name;if($_POST['game_submit_btn']==1){ //query here to add if($_SESSION['loggedinuserid']!=''){ $_SESSION['hs_username']=$_SESSION['loggedinuser']; $_SESSION['hs_uid']=$_SESSION['loggedinuserid']; }elseif(strlen($_SESSION['hs_username'])<2){ //$_SESSION['hs_user_name']='guest'.rand(0,999); $_SESSION['hs_username'] = 'Guest User'; $_SESSION['hs_uid']=0; } }\[/code\]And also one more thing is after submission of highscore i have bookmarked the site and again i revisited the site but the highscore values are not diaplaying..why it s happening....please reply me soon....awaiting for response....
 
Back
Top