I've got a form that a user can fill out Say the user inputs something like this:
This is some text. We can execute PHP
[execute]
//Here is some php
for($i=0;$i++;$i<10){
print "This is ".$i;
}
[/execute]
Ok, that's enough for now.
HTML <b>is</b> valid too. Right?
[execute]
// note we preserve variables and stuff from above.
if ($i == 10){
print "Yes";
} else {
print "Wrong";
}
[/execute]
What I'm interested in is a method to parse what's between the [execute] and [/execute] tags, and print the output in that spot.
As the above exmaple notes, it should preserve variables as well.
Can anyone provide some insight/sample/whatever else may help?