Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Form Question
- Dave Mennenoh
May 22, 2006, 4:38 pm
rate this thread
I've run into an issue with the submit. I have a Select component (drop down
box) that has an onchange="this.form.submit()" so that users can simply pick
the item to be edited. Furtner down there's a standard submit button... How
can I differentiate between the two submits?
If they pick an item from the dropdown I just want to fill in the form with
the data selected from the database for that record. If they hit the submit
button, I want to post the form and save that data into the database.
Seems like it should be an easy one, but I'm just missing it.
Adobe Community Expert
Re: Form Question
Dave Mennenoh wrote:
<input type="submit" name="foo" value="bar">
Clicking this button will post the form like there was a input field
with name foo and value bar. Look for $_POST['foo']. If it exists, the
button is clicked.
<input type="hidden" name="TypeOfSubmit" id="TypeOfSubmit">