Hi Tom, Tom Jefferson wrote: > Hi Raymond, > > It is one file. I have recreted my VERY stripped down example from my > original post with a few more details that may or may not clear up what I am > doing. When the page loads for the first time the <%init> section is > processed first and I check the the value of $Submit, the name I gave to my > submit button. > > Since the page is loading for the first time and hence Submit has not > been clicked then $Submit is False (0) and the code in the if($Submit) blocks > is not executed. >
Ah, thank you for the clarification; yes, I see what you're doing and never thought of having the validation in the same file with it bypassed the first time. Interesting...and much better than what I'm doing (validating with a second file). Oh, sorry...you were the one that was asking for comments and I turned the tables and made you answer. :-) Thanks a lot -- for minor checks, you might want to reduce the load on the server by doing client-side checking with Javascript. It seems to work with me and, of course, depends on the trade-off between the cost of doing many submissions versus sending the source to the Javascript first. Of course, client-side will pop up a box with the error...but it won't highlight the error in red since you need to re-write the HTML file. Thanks for the explanation! Ray ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users