I been trying to pull a value from a Param Name that is loaded by a Js.
The php is what pulling it.
Any advice would be taken gracefully.
I want $movie to become the value from the
<param name="movie" value="http://www.youtube.com..."
In other words
value="http://www.youtube.com..."`
Needs to go into $movie
I have tried to “include(“Api_PlusLoad.js”)
But still no luck
Php Code:
<?php
$movie=$_POST['movie'];
$con = mysql_connect("localhost","root","student");
mysql_select_db("tvid", $con);
$sql="INSERT INTO tv (userid, favorites) VALUES ('2', '$movie');";
mysql_query( $sql, $con ) or trigger_error( mysql_error( $con ), E_USER_ERROR );
echo"";
mysql_close($con);
?>
The Param
<object width="640" height="360">
<param name="movie" value="http://www.youtube.com/v/FavUpD_IjVY&hl=en_GB&feature=player_embedded&version=3"> </param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.youtube.com/v/FavUpD_IjVY&hl=en_GB&feature=player_embedded&version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></embed>
</object>
Major problem I am facing is that I want to add the value of the Param Name Movie.
which is below.
I want it to take value (beside it) and add to a database which is defined in the PHP.
$movie is the variable that references the ‘movie’ variable which is the Param Name.
With the code I currently have, all it does is insert a blank into the database.
If i understood you right this should help you to find the solution.