I'm beginner for PHP. I have a form on the website and this form getting title and description values specific websites (with preg\_match).

I want to add url input this form and when you add url and press submit button its auto get fields. Example

Frontend:

```
<input name="url">https://testdomain.com/posts/6412</input>

```

Backend:

```
$link = 'input values here';

```

Result:

Form fields (title and description getting) refresh or with ajax.