phatgreenbuds Posted April 17, 2008 Share Posted April 17, 2008 So I have no idea why, but the two part code below works in firefox perfectly, but using IE I get a page cannot be displayed... <form method="post" action="channel.php" enctype="multipart/form-data"> <select name="channel"> <option value="ot1"> Episode 1</option> <option value="ot2"> Episode 2</option> <option value="ot3"> Episode 3</option> </select> <input type="submit" name="submit" value="submit"> </form> <?php if (isset($_POST['channel'])) { $chan = $_POST['channel']; header( "Location: mms://www.somesite.com/$chan" ); } else { echo "CRAP!"; echo "<br>"; } ?> It would be really clever if I could get it to use a single page instead but I would be happy if I could just get this to work in IE right now. Link to comment https://forums.phpfreaks.com/topic/101493-firefox-worksie-does-notarghhhhh/ Share on other sites More sharing options...
trq Posted April 17, 2008 Share Posted April 17, 2008 Remove the enctype="multipart/form-data" seeing as its not required. Link to comment https://forums.phpfreaks.com/topic/101493-firefox-worksie-does-notarghhhhh/#findComment-519143 Share on other sites More sharing options...
phatgreenbuds Posted April 17, 2008 Author Share Posted April 17, 2008 ok did that but IE still shows a "page cannot be displayed" however if i go directly to it I get the "else" result. So something in the post or header line is not working right for IE Link to comment https://forums.phpfreaks.com/topic/101493-firefox-worksie-does-notarghhhhh/#findComment-519146 Share on other sites More sharing options...
benphp Posted April 17, 2008 Share Posted April 17, 2008 What's mms:// ? Link to comment https://forums.phpfreaks.com/topic/101493-firefox-worksie-does-notarghhhhh/#findComment-519147 Share on other sites More sharing options...
phatgreenbuds Posted April 17, 2008 Author Share Posted April 17, 2008 mms:// is what you use to launch windows media player. Link to comment https://forums.phpfreaks.com/topic/101493-firefox-worksie-does-notarghhhhh/#findComment-519148 Share on other sites More sharing options...
benphp Posted April 17, 2008 Share Posted April 17, 2008 Try header('Location: mms://www.somesite.com/'.$chan ); Link to comment https://forums.phpfreaks.com/topic/101493-firefox-worksie-does-notarghhhhh/#findComment-519149 Share on other sites More sharing options...
phatgreenbuds Posted April 17, 2008 Author Share Posted April 17, 2008 no luck...this is driving me nuts! Link to comment https://forums.phpfreaks.com/topic/101493-firefox-worksie-does-notarghhhhh/#findComment-519150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.