--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.
Yup tjs got the right idea
Try this:
button(type="submit", name="op", value="s") Submit Changes
button(type="submit", name="op", value="c") Cancel Edits
--
Branko Vukelic
bra...@herdhound.com
bg.b...@gmail.com
Lead Developer
Herd Hound (tm) - Travel that doesn't bite
www.herdhound.com
Love coffee? You might love Loveffee, too.
loveffee.appspot.com
If you don't like button tags, you could do this:
var SUBMIT = 'Submit Changes';
var CANCEL = 'Cancel Edits';
switch ( req.param('op') ) {
case SUBMIT:
// Commit
break;
case CANCEL:
// Redirect
break;