On Thu, May 09, 2002 at 02:16:44PM +0100, Chris Withers wrote:
John Hunter wrote:
> "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>
Could this be used instead?
<input name="yourEditMethod:method" type="submit" value="Update Form" /> <input name="yourAddMethod:method" type="submit" value="Add Event" />
I've done something similar (?) in the past: <input name="foo" type="submit" value="Foo Text" /> <input name="bar" type="submit" value="bar Text" /> ... and then in the (single) script handling form submissions, I just tested for existence of foo and bar. I forget exactly the code I used to do that, but it was pretty easy. In your version, where are yourEditMethod and yourAddMethod defined? Are they acquired from somewhere? I smell a better solution than mine, but I don't quite follow how this works... -- "Welcome to Muppet Labs, where the future is made - today!"