I'm stumped. I'm not so sure what is the answer. I'll do some poking around and get back to you if I bump into an decent answer. You should email the people at iContact as they probably could assist you..
Its working both ways for me, using Mozilla 1.5..
Nope sorry nothing todo with that. If you try the login form above just put in some random values and hit enter it you'll notice the submit button actually does something when you hit enter but with the search one it doesn't. I don't know why though because if check the source the code is exactly the same for each form...
The source? the php part of it cause it has nothing to do with html. I really don't know what it is cause I make a form and I can hit enter, but then again I don't check for the submit button. I check for the value or an hidden form variable..
By default the form should be submitted by the enter key, why yours doesn't is probably in your php code because it does refresh the page..
Seems like mozilla is pressing the button for you when you press "enter" but not explorer....
But each one has POST the form since it ask when you try to refresh the page.
Check the hidden field is a cool idea!!..
Hm, I have same problem ...
And it's not php ...
It works with mozilla and not with IE ...
Why ?! There is some explanation .. but ...
It is cause you used 1 field, you should have more ...
I tryed with javascript, but aint work ...
I tought I would find answer here, but nothing...
I need solution, if there is one ....
Google has it.
Cause when you press enter it will search for results... Hm !!!..
Kova, what is your form? by default it should work in any browser if you have it set right...
Hm, sorry to tell you ...
But pls make your self form with only 1 submit line !.
And try to print that variable with php, after you press enter !.
U will se THAT U CANT DO THAT no with IE (Internet Explorer), WHY ?! I dont care, I just want code that will help me with that !..
Read my firts post again.
..
You can not look for the submit button..
Tha tcode works for me in IE and all other browsers...
Sorry !!.
But like I said, doesnt work without POST, ....
Thanks VERY VERY MUCH !.
Sorry again ....
Did you just not read what I said. that code works fine by hitting enter. did you try it? does the form submit? are you checking for something else but submit..... you cannot check for submit as it doesn't get sent..
THAT CODE WORKS JUST FINE IN IE...
YUP IT WORKS.
I meant if there is no if($_POST[''])... it doesnt work, if you working with if($submit){.
(it works only if you have more then 1 input) .....
If you are checking for $time instead of $_POST['time'] and you get nothing is because your settings in php are wrong. it means you register_globals is off, you have to use $_POST. that is default in php for security reason..
You are correct, it will not work with submit which seems reasonable. you hit enter it doesn't send the submit. that is why I said you can't check for submit, you shouldn't anyway..
If you had this it would also work. you don't have to have if(){. tha tis just a sanity check. but it is good to check for it..
But by default it will send the form with enter, it has nothing to do with html, it has to do with your php code...
I think this disscussion is over ... but ...
"you are correct, it will not work with submit which seems reasonable. you hit enter it doesn't send the submit. that is why I said you can't check for submit, you shouldn't anyway.".
But why it works with more then 1 input, and why it works with firefox (with 1 input text-box)!.
Nevermind, it's not important. Thanks..
My complete page works now fine.....

