I want to use a special text in textarea as variable that has value.
For example:
A text %Url%
in textarea is equal to http://example.com/
.
It is more likely to this:
If In PHP, it will work like this:
$Url = 'http://example.com';
echo 'This is an example'.$Url.'of a website';
output in html: This is an example http://example.com of a website
What I want to do is make the textarea work like the code above.
Textarea
%Url% = http://example.com/
<textarea name='test'>This is an example %Url% of a website</textarea>
So when the value of that textarea is sent to the server, I want php to read it as:
This is an example http://example.com/ of a website
or if $_POST['test']
(the textarea name is test) is echoed after submission, then it will output:
This is an example http://example.com/ of a website
How to achieve it? I saw an app able to do it!