Jump to content

How to take value from two different url?

Recommended Posts

So I wants to take value from URL, I create simple PHP code for taking value from URL 

	$url = $_POST["url"];
	$value = (explode ('v=', $url));
	$videoId = $value[1];

This for taking value from this https://www.youtube.com/watch?v=value url and echo somewhere, but wants to take value from  https://www.youtu.be/value , this also,  but how?  , work with both URLs




Link to post
Share on other sites
  • 2 months later...
9 hours ago, Makwana Prahlad said:

Use the ampersand & to glue variables together:

    $url = "http://localhost/main.php?email=$email_address&event_id=$event_id";
    //                               ^ start of vars      ^next var


I am not sure you even read the question.

You consistently provide incorrect or irrelevant answers to questions.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...