> I have a form with multiple submit buttons. Each
> button has a unique associated id value. I want to
> pass the associated id value with the submit
> button that is pressed.

If you can rely on JavaScript in your environment, set a hidden form field
that will contain the ID but default it to be blank.

For each submit button, change it to be...

<input
  type="button"
  name="whatever"
  value="Submit 1"
  onclick="this.form.hidden_field.value = #someid#; this.form.submit();"
>

With #someid# being the value for that button.  This would set the hidden
field to the correct ID and then submit the form.  It's been a while since
I've done this, so the JavaScript code may need to be tweaked to work
properly, but you get the idea.


-Justin Scott


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203150
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to