SimplifiedEntryExample1

From WeBWorK_wiki
Revision as of 11:11, 17 June 2008 by Gage (talk | contribs) (New page: <style type="text/css"> label {margin-right:1em} </style> <form action="#"> <fieldset> <legend>Settings</legend> <label for="context">Context</label> <select id="context" nam...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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>

<input type="button" value="Save" ></input><input type="button" value="Preview">

</form>