FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

question on NetBean ajax tutorials

 
Post new topic   Reply to topic    NetBeans Forums -> Ajax Users
View previous topic :: View next topic  
Author Message
NewNet



Joined: 24 Aug 2009
Posts: 38

PostPosted: Fri Sep 18, 2009 7:50 am    Post subject: question on NetBean ajax tutorials Reply with quote

Hi all,
I try the ajax Php example on NetBean, but the composerView.php did not display the variable, I just wonder
1) why the value did not passt to other page??
Code:
// if user chooses from pop-up box
if(isset($_GET['action']) && isset($_GET['id']) ) {
    foreach($composers as $composer) {
        if($composer->id == $_GET['id']) {
            session_register("id");
            session_register ("firstName");
            session_register ("lastName");
            session_register ("category");

            $_SESSION_VARS ["id"] = $composer->id;
            $_SESSION_VARS ["firstName"] = $composer->firstName;
            $HTTP_SESSION_VARS ["lastName"] = $composer->lastName;
            $HTTP_SESSION_VARS ["category"] = $composer->category;

            header("Location: composerView.php");
        }
    }
}
Embarassed [/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ajax Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB