For a long time everything worked fine, but I did something (I do not know
what) and when executed search.a4p:


    case of
        : ( defined ($f_search_x))
            set session...
        : ( defined ($f_previous_x))
            set session...
        : ( defined ($f_next_x))
            set session...
        else
            redirect("../404.html")
    end case

all variables are defined as false and redirect to 404 is executed.

Did you upgrade to 3.01? If so, that version does not create local variables from form fields/query params by default. Are you using 4D as the web server? If so, the form action URL has to have /4dcgi in it or no form fields will be available.


My demo is ancient, I recommend using the syntax

   case of:
       :(form variables has("f_search_x"))

or

   case of:
       :(_form{"f_search_x"} # "")

I don't recommend using auto-created variables any more.


* get form variable ("f_search_x" # "")
  -->
Active4D error
Expecting a text expression.

You might have more luck with:

   get form variable("f_search_x") # ""

Regards,

   Aparajita
   Victory-Heart Productions
   [EMAIL PROTECTED]
   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