Ingar Posted August 27, 2003 Posted August 27, 2003 Hi! I have a search page with this code: <P><INPUT TYPE="text" NAME="_cday" VALUE="01/01/2003" <P><INPUT TYPE="text" NAME="_cday" VALUE="31/12/2003" This code works fine, but I would like to have the date in the second line to show the date today. I have tried to do this: <P><INPUT TYPE="text" NAME="_Cday" VALUE="[FMP-Currentdate]" But this only show up as [FMP-Currentdate] in the text box. The DB is located in another folder than the Web-folder. In the browser I open the URL: http://localhost/search.htm Maybe there is another way to get the wanted result. I hope someone can give me a clue on what to do. Ingar
Garry Claridge Posted August 27, 2003 Posted August 27, 2003 [FMP-CurrentDate] will work if the page is processed by WebCompanion first. If not you may have to use some Javascript. All the best. Garry
Steve T. Posted September 2, 2003 Posted September 2, 2003 Hi, Ingar! Yeah, Garry's right... you cannot display FMP information from your database on your "first" page. You can have input boxes for searches and stuff but if you are actually drawing upon info in your db (or in this case from FMP application), the Web Companion cannot substitute true desired data for your tags until it has been accessed. You can do what Garry hints at by using JavaScript (it has date functions) or you can do what I did and just have your 1st page be an intro page with a -findany action that refreshes automatically to the main page that has the current date (I used a calc field using Status(CurrentDate) for mine) and search query boxes. Good luck! --ST
Recommended Posts
This topic is 7744 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now