3 function tiny_agreement_get_fields() {
4 $name = format_oneline($_REQUEST['name']);
5 tem_set('name', $name);
7 $level = format_options($_REQUEST['level'], 'level');
9 return array($name, $level);
12 function tiny_agreement_main() {
14 $GLOBALS['url'] = this_url();
15 return 'tiny_agreement';
18 pulldown('level', array(
26 array('300', '$300')), PULLDOWN_2D);
28 if(isset($_REQUEST['name'])) {
29 list($name, $level) = tiny_agreement_get_fields();
33 db_update('people', 'name,tiny_agreement', $name, $level, 'where id=%i', logged_in());
34 message('Thank you for filling out the Tiny User Agreement.');
37 message('Please enter your name.');
40 message('Something went wrong there. Please try again');