Connecting a Moodle Page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yasmine
    New Member
    • Feb 2008
    • 64

    Connecting a Moodle Page

    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
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    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?

    Comment

    • yasmine
      New Member
      • Feb 2008
      • 64

      #3
      Originally posted by harshmaul
      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.

      Comment

      • harshmaul
        Recognized Expert Contributor
        • Jul 2007
        • 490

        #4
        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...

        Code:
                <form action="http://mymoodleserver/index.php" method="post" id="guestlogin">
                  <div class="guestform">
                    <input type="hidden" name="username" value="guest" />
                    <input type="hidden" name="password" value="guest" />
                    <input type="hidden" name="testcookies" value="1" />
                    <input type="submit" value="Login as a guest" />
                  </div>
                </form>

        Comment

        Working...