By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,745 Members | 1,889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,745 IT Pros & Developers. It's quick & easy.

Connecting a Moodle Page

P: 65
Hi friends,
Can anyone tell me the way to connect a Moodle page with our PHP page?
That is I need the questionnaire option which already available in Moodle.
If I want to connect it with my php script what i hav to do???
Plz..... Help me out..........

Thanx n Regards
Yas
Feb 21 '08 #1
Share this Question
Share on Google+
3 Replies


harshmaul
Expert 100+
P: 490
Hi Yas,
What does your PHP code do exactly.

The easiest way to connect anything to PHP, is by using query strings.

So you can build up a query string based on information you have available in page and pass that on to the next page.

And also how much control do you have over moodle? are you able to print out anchor tags?
Feb 21 '08 #2

P: 65
Hi Yas,
What does your PHP code do exactly.

The easiest way to connect anything to PHP, is by using query strings.

So you can build up a query string based on information you have available in page and pass that on to the next page.

And also how much control do you have over moodle? are you able to print out anchor tags?

Hi harshmaul,

I'm going to use questionnaire and feedback modules of moodle.
I can't understand your answer properly.
Could you please explain it some more in detail....???

For example, if i'm going to create a login page, then how can I connect that page with the moodle's login page?

Plz.... Help me out....

Thanx n Regards
Yas.
Feb 22 '08 #3

harshmaul
Expert 100+
P: 490
hi,
I was playing about with it, and if you want a page that logs you in to moodle accross different applications.... use this html

This will allow login as guest...

Expand|Select|Wrap|Line Numbers
  1.         <form action="http://mymoodleserver/index.php" method="post" id="guestlogin">
  2.           <div class="guestform">
  3.             <input type="hidden" name="username" value="guest" />
  4.             <input type="hidden" name="password" value="guest" />
  5.             <input type="hidden" name="testcookies" value="1" />
  6.             <input type="submit" value="Login as a guest" />
  7.           </div>
  8.         </form>
  9.  
Feb 22 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.