Today at 08:17 PM filburt1 said this in Post #6 It's not a good idea to overwrite an options variable.
I agree with you as a principal but my code is ok here because as you can see, it is just inserted right before "dooutput" function which terminates the script when it runs. In other words overwriting a system variable can not make any harm here as the script ends right after it anyway..
Quote:
still causes me to get an JavaScript error box when I click SUBMIT if the text is over 1,000 characters.
Today at 01:37 PM Logician said this in Post #11 I agree with you as a principal but my code is ok here because as you can see, it is just inserted right before "dooutput" function which terminates the script when it runs. In other words overwriting a system variable can not make any harm here as the script ends right after it anyway..
I thought of that, too, but what if you want to use that variable in a template?
Code:
You may use up to $pmmaxchars characters in this message.
That is used in the template to check the length of the message. Couldn't you just make that a global variable and that would take care of using it in another template?