Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7565513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:10:28+00:00 2026-05-30T14:10:28+00:00

I been trying to pull a value from a Param Name that is loaded

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:10:29+00:00Added an answer on May 30, 2026 at 2:10 pm
    <?php
    $sourcestring='<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>';
    
    preg_match_all('/<param name="movie" value="(.*)">/',$sourcestring,$matches);
    
    echo "<pre>".print_r($matches,true);
    ?>
    

    If i understood you right this should help you to find the solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to pull artifacts from teamcity. I've been trying to use c#
I've been pulling my hair out trying to use jQuery.get() to pull in my
I have been have issues trying to retrieve the values from a treeMap that
Ive been trying to pull data from an xml file but i keep getting
Ive been trying to display formatted content blocks from a xml file with no
I've been trying to understand how Ruby blocks work, and to do that I've
I am trying to create a macro that brings in the name of the
i've been trying to have a dynamic ContextMenu to show the name property of
Good Morning, I have a SharePoint site that I've been trying to fix up
I have been trying for a while now to return data from the database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.