1) In the Active4D demo, in the Sessions page, there is a Search button,
the name of which is defined as f_Search.
Clicking this button causes the Search page to load.
The code in the search page checks for f_Search_X.
The form variables (on loadijng the Sewarch page) actually contain
f_Search_x and f_Search_y, with different values assigned to them.
I have checked all manuals I can lay my hands on without finding any
reference to this behaviour.
Where are these coming from, and what happened to f_Search?
I searched the docs and couldn't find it either. My apologies, I'll have to add that.
The Search button is an image button. When you submit via an image button, the browser actually submits two form variables, <button_name>.x and <button_name>.y, which represent the x,y coordinates of where you clicked within the image.
Since I form variables can be turned into local variables, and a local variable name cannot have a dot in it, I convert the dots into underscores. To be consistent with the local variable names, I do the same in the form variables.
You can see a demo and explanation of this in the Forms section of the demo site.
Transferring all html and A4D stuff across to an existing (much larger) db, I cannot get the Search page to work. Doing a Form Variables dump shows absolutely no form variables present. Is there a 4D setting somewhere that I have overlooked? Heeelllppppp! I have wasted 2 days messing with this - any and all hints will be welcome!
1. Don't wait 2 days to ask for help.
2. Prepend the action URL of POSTed forms with /4dcgi, e.g. /4dcgi/handleform.a4d
The 4dcgi bugaboo has been the bane of many people's existence, you are not the first. It's a 4D thing, but I need to document its necessity better. I have lobbied long and hard to have this particular "feature" of 4D be removed, but to no avail.
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
