Please Help for PHP in Moodle 3.2 Form

Please Help for PHP in Moodle 3.2 Form

by Eric Ring -
Number of replies: 1

Hi there! I need help because I wrote the Moodle Script for this website and it creates a button in the original below, after which the form opens within this form. For security reasons, no further windows should be opened. The label of the button could be "additional form".

Here is the Moodle Script:

<div class="qtext">
  <?php echo $questiontext; ?>
</div>

<?php if ($image) { ?>
  <img class="qimage" src="<?php echo $image; ?>" alt="" />
<?php } ?>

<div class="ablock clearfix">
  <div class="prompt">
    <?php echo get_string("answer", "quiz").': '; ?>
  </div>

  <div class="answer">
    <input type="text" class="<?php echo $class; ?>" <?php echo "$readonly $inputname $value"; ?> size="80"/>
    <?php echo $feedbackimg; ?>
  </div>
  <?php if ($feedback) { ?>
    <div class="feedback">
      <?php echo $feedback ?>
    </div>
  <?php } ?>
  <?php $this->print_question_submit_buttons($question, $state, $cmoptions, $options); ?>
</div>

Average of ratings: -