PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
But the if statment is directed to one of the forms, for instance if one form was called dog and the other was called cat. If dog form was submitted then the if statment would be true, is this possible?
The form's name is not transmitted when submitting. A simple way is to use either a unique variable name inside the form, or use a common name to one, but differing values.
feyd wrote:The form's name is not transmitted when submitting. A simple way is to use either a unique variable name inside the form, or use a common name to one, but differing values.
To provide an example (i'm nice, what can I say)... use a hidden input tag in the forms... i.e.
In the current project i'm working, hitting 'enter' when the submit button is higlighted results in the same as when i'm clicking with the mouse? Anybody know why that is the case? Is it some certain setting that have to be taken in to consideration?
If so i would appreciate it as it's getting closer to delivery time
thallish
Last edited by thallish on Thu Mar 31, 2005 1:50 pm, edited 1 time in total.
hitting enter or space on the button itself will submit as though clicking the button, typically. However, if you are in a text field, or a few others I can't remember, hitting enter may not send the submit button.. depends on the browser you are using.. IE doesn't send, Firefox does.
hmm just tested it in IE and firefox and there seems to be no problem in that direction. If it turns out to be a problem i must correct it. Well now I just found another troublesome one but that's a different post