Forum Moderators: coopster
Any ideas? Do I have to use a Javascript to make this happen? I dont remember having problems before doing this.
Thanks :)
Wes
When I came across this I changed from using:
if($_POST['submit']){
// do some processing
}
to
if(!empty($_POST)){
// do some processing
}
I don't give it an ID but I do give it a name. Should I be giving it an ID?
I wouldn't be able to use if(!empty($_POST)){ because I have more than one form on the page. Now what the form is for is a search so they can find FAQ's on my products. What I did to fix the situation though is see if the actual input field isset(). This seems to be working fine and works in all browsers I have tested it in.
Would this be a good fix or could it pose problems? It was either that or figure out some javascript to do it, which I really didn't want to get into.
Thanks again :)
Wes