phatgreenbuds Posted February 21, 2008 Share Posted February 21, 2008 Ok so I have this little streaming video server internally that I am playing with. I wouild like to make a little drop down channel changer to move between the broadcasts. Here is the initial page: <form method="post" action="channel.php" enctype="multipart/form-data"> <select name="channel"><br> <option value="Channel"> Channel</option> <option value="300"> 300 The Movie</option> <option value="atu"> Across The Universe</option> <option value="cww"> Charlie Wilson's War</option> </select> <input type="submit" name="submit" value="submit"> </form> From there it goes to this PHP page where I am tring to have it redirect to the stream: <?php if (isset($_POST['channel'])) { $chan = $_POST['channel']; } header( 'Location: mms://10.10.10.12/$chan' ); ?> I know the variable is getting passed properly but the redirect is not working and I have no clue. Any ideas? Any suggestions for a better method? Link to comment https://forums.phpfreaks.com/topic/92234-streaming-and-redirects/ Share on other sites More sharing options...
schilly Posted February 21, 2008 Share Posted February 21, 2008 Answered the exact same problem earlier today. header( 'Location: mms://10.10.10.12/$chan' ); Change it to double quotes. Single quotes does not allow for variables. Link to comment https://forums.phpfreaks.com/topic/92234-streaming-and-redirects/#findComment-472498 Share on other sites More sharing options...
phatgreenbuds Posted February 21, 2008 Author Share Posted February 21, 2008 wow...I feel really ashamed. I cannot believe I did not catch that. Thanks you have solved my problem... Link to comment https://forums.phpfreaks.com/topic/92234-streaming-and-redirects/#findComment-472500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.