Jump to content

Streaming and Redirects


phatgreenbuds

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.