processing strings as code

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm trying to make a generic form processor, but I have several spots
whre I need to include custom code (validation, UPDATEs, etc), now I
could have four seperate files to include the necessary code but I
think that would be messy.  Is there a way I can define a bunch of
strings with stuff like:

$validate="if ($list_data = 5) {
$err = \"Data Sould be 5.\";

and then insert in so that becomes part of the running code and not a
string...  Any ideas?


Re: processing strings as code


Site Timeline