Skip to content
Advertisement

Php get_meta_tags doesn’t getting result (help)

I want to pass user input youtube url and get keyword or tags in result.

But i don’t know what is wrong.

When i click on submit button nothing happens

JavaScript

Html

JavaScript

Thanks in advance

Advertisement

Answer

Here is a working example

JavaScript
JavaScript

There are 3 small mistakes in your code:

  1. Your submit name is Submit you are checking submit
  2. Your submit input located outside of <form>
  3. You are using $yt a little bit wrong. You don’t need to wrap it with '$yt' if you want to send a variable as an argument to the function.

Here is what I’m getting now after submitting this form

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement