onedumbcoder Posted August 1, 2009 Share Posted August 1, 2009 I have this code <?php$search = "<form method='post' action='search.php'> <input type='text' name='searchword' id='searchword' value='Search' style=\"color:#AAA;border: 0 !important;\" onfocus=\"searchAct(this);\"/> <input type='submit' name='submit' value='Search' style=\"margin-left:-5px; border: 0 !important;background:#888 !important;\"> </form>";echo $search;?> and then in other file i have <?phpif($_POST['searchword']) $search = addslashes($_POST['searchword']); else $search = addslashes($_GET['search']);?> but when i hit submit it does not work in ie, i have no idea why not. Does anyone have a clue? Quote Link to comment https://forums.phpfreaks.com/topic/168436-solved-form-post-not-working-in-ie/ Share on other sites More sharing options...
gevans Posted August 1, 2009 Share Posted August 1, 2009 Does it work in any other browsers. When you say it doesn't work, what happens, does it go to search.php? Quote Link to comment https://forums.phpfreaks.com/topic/168436-solved-form-post-not-working-in-ie/#findComment-888506 Share on other sites More sharing options...
onedumbcoder Posted August 1, 2009 Author Share Posted August 1, 2009 it does not execute the search. does not return "0 results" or anything Quote Link to comment https://forums.phpfreaks.com/topic/168436-solved-form-post-not-working-in-ie/#findComment-888510 Share on other sites More sharing options...
gevans Posted August 1, 2009 Share Posted August 1, 2009 does it work in any browsers?? does it go to search.php? Quote Link to comment https://forums.phpfreaks.com/topic/168436-solved-form-post-not-working-in-ie/#findComment-888511 Share on other sites More sharing options...
onedumbcoder Posted August 1, 2009 Author Share Posted August 1, 2009 I figured out the problem, though I do not understand why it worked in ff. thanks Quote Link to comment https://forums.phpfreaks.com/topic/168436-solved-form-post-not-working-in-ie/#findComment-888513 Share on other sites More sharing options...
gevans Posted August 1, 2009 Share Posted August 1, 2009 Do you mind sharing how you sorted out for other users? Quote Link to comment https://forums.phpfreaks.com/topic/168436-solved-form-post-not-working-in-ie/#findComment-888516 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.