From WeBWorK
Revision as of 11:26, 17 June 2008 by Gage (Talk | contribs)
Jump to: navigation, search

<style type="text/css"> label {margin-right:1em} </style> <form action="#"> <fieldset> <legend>Settings</legend> <label for="context">Context</label> <select id="context" name="context"> <option value="numeric">Numeric</option> <option value="vector">Vector</option> </select> </fieldset> <fieldset> <legend>Calculations</legend> <textarea rows="5" cols="80">$a = random(1,6); $b = random(1,6); $answer = $a + $b; </textarea> </fieldset> <fieldset> <legend>Text of problem</legend> <textarea rows="10" cols="80">What is the sum of \($a\) and \($b\)? $BR \{ans_rule(10)\} </textarea> </fieldset> <fieldset> <legend>Answers</legend> <label for="answer1">Answer 1</label><input type="text" id="answer1" name="answer1" value="$answer"/> </fieldset> <p><input type="button" value="Save" ></input><input type="button" value="Preview"></p> </form>

follow us