Jump to content
Sign in to follow this  
shubham704

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 

<?php
	if(isset($_POST["Search"])){
	$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

 

 

 

Share this post


Link to post
Share on other sites

Use the ampersand & to glue variables together:

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

 

Share this post


Link to post
Share on other sites
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.

Share this post


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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...