I have an input box that tells uers to enter a link from imgur.com
I want a script to check the link is for the specified site but I’m not sue how to do it?
The links are as follows: https://i.stack.imgur.com/RYnCi.jpg
Please note that after the /, the text may vary e.g. not be a jpg but the main domain is always http://i.imgur.com/.
Any help appreciated.
Thanks, Josh.(Novice)
Try this:
Where $_POST[‘url’] is the user input.
I haven’t tested this code.