![]() |
PHP: Detect URL in "text".
So here I am again asking for something that seems simple to me, but for one reason or another I can't visualize how to put this on paper.. so to speak.
User inputs in a form: HTML Code:
<HTML> So, to work around this, I've came up with the following solution, but I'm not sure how implement it in PHP: If the user inputs the above in a form.. upon submission, the <IFRAME SRC="" URL would be detected and/or changed to whatever URL I've predetermined (so users can access material only on one site URL, not every site URL). So, in the above example, if you were to replace the above IFRAME statement with what is below: User would input: HTML Code:
<HTML> HTML Code:
<HTML> Whatever a user puts in for the URL of the iframe source is dynamic -- there's no set address that is a good address. Suggestions? |
All times are GMT. The time now is 10:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|