ihatephp Posted July 10, 2008 Share Posted July 10, 2008 Let's say i'm a teacher,and i post a question online. This question should be seen on the student page. How do i grab the question frm the teacher page,so it can be seen on the student page ? Quote Link to comment https://forums.phpfreaks.com/topic/114035-grab-question/ Share on other sites More sharing options...
DarkWater Posted July 10, 2008 Share Posted July 10, 2008 Uhh.....WHAT? There are probably a thousand and a half ways to do that. Please elaborate. Quote Link to comment https://forums.phpfreaks.com/topic/114035-grab-question/#findComment-586119 Share on other sites More sharing options...
Lamez Posted July 10, 2008 Share Posted July 10, 2008 ya this sounds so simple, a beginner could do it. Lets think for a second, Database would help A special page for teachers A special page for the students That would be all, then programming it all out. I could do this in about 30mins, but I am not. Quote Link to comment https://forums.phpfreaks.com/topic/114035-grab-question/#findComment-586120 Share on other sites More sharing options...
unsider Posted July 10, 2008 Share Posted July 10, 2008 Time to look up some tutorials on google. Haha @ your username too Quote Link to comment https://forums.phpfreaks.com/topic/114035-grab-question/#findComment-586122 Share on other sites More sharing options...
ihatephp Posted July 10, 2008 Author Share Posted July 10, 2008 wad i have at the teacher page here(process) $qn = $_POST['qn']; echo "RJ Question set:<br />{$_POST['qn']}<br /><br />"; So,to grab tht question at student page <?php echo "Question :<br/>{$GET['question']}<br /><br />"; ?> but...din wrk sry,lousy basics i have Quote Link to comment https://forums.phpfreaks.com/topic/114035-grab-question/#findComment-586131 Share on other sites More sharing options...
MasterACE14 Posted July 10, 2008 Share Posted July 10, 2008 change this: $qn = $_POST['qn']; echo "RJ Question set:<br />{$_POST['qn']}<br /><br />"; to this: <?php $qn = $_POST['qn']; echo "RJ Question set:<br />" . $_POST['qn'] . "<br /><br />"; ?> change this: <?php echo "Question :<br/>{$GET['question']}<br /><br />"; ?> to this: <?php echo "Question :<br/>" . $_GET['question'] . "<br /><br />"; ?> Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/114035-grab-question/#findComment-586175 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.