Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37679

Re: how to add table to moodle form

$
0
0
by Davo Smith.  

Based on the very limited information included in your question:

$mform->addElement('html', '<table><tr><td>Item 1</td><td>Item 2</td></tr></table>');

(Although you should really be using the html_table class to generate the HTML for the table itself).

If you give more detail about what you are doing, then you might get a more detailed answer.


Viewing all articles
Browse latest Browse all 37679

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>