"Geir" == Geir Bækholt <geirh@funcom.com> writes:
Geir> <input type="submit" name="somevar" value="someval" /> Geir> <input type="submit" name="somevar" value="someotherval" /> Geir> </form> Neat idea. At first I balked because the value is also the text for the variable, and I wanted one the button's to say something like 'Update Form' with somevar=0 'Add event' with somevar=1 But I realize that I can process these in the add function, with if somevar=='Update Form': somevar=0 elif somevar=='Add Event': somevar=1 else: raise 'Did you change the value of your add form buttons and forget to change your add function again?' Not the cleanest design, because if you want to change the text of the button you have to remember to change your add form, but it should work. Thanks, John Hunter