How do I post a complete url in PHP?
For example:
I have a form that has allowed individuals to submit a long URL. The resultant page /index.php?url=http://www.example.com/
This is fine for short URLs, but for very long and complex URLs ( Such as from Google Maps) should know how to create all the data related to variables url .
You should convert signals into strings - otherwise the characters that have special meaning in the URI, Instead of being regarded as would have special meaning.
If users submit this data through a data, then it will be automatically encoded.
If you are planning to include the URL in the link in any HTML document, do not forget the HTML entities.
Comments
Post a Comment