function action($www, $response) { $www->query('message:edit', array('message_id' => post::hidden('id'), 'author' => post::text('author'), 'message' => post::textarea('message'))); $response->location('/'); }
function action($www, $response) { $www->query('message:create', array('author' => post::text('author'), 'message' => post::textarea('message'), 'ip' => $www->variable('user:ip'))); $response->location('/'); }