Is this a valid test to determine if the user typed in the URL instead of posting a form:

if(is a collection(_form))
` perform query, etc... for a post

else
` just display form
include("some_file.html")

end if

No, _form is always defined. It may be empty, but it is always defined. You have to do this:

if (count form variables > 0)
   ` a post
else
   ` display form
end if


BTW, I recommend using jEdit (www.jedit.org) instead of TextWrangler, it's free, it's better, and with the config files available from my site it supports full syntax hilighting of Active4D code.

Regards,

   Aparajita
   Victory-Heart Productions
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to