Jump to content

This topic is 8360 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

FMRes/FMPJS?-db=Products.fp5&-layID=1&-token=25&-max=1&-format=formvwcss.htm&-mode=browse&-findall

What code would I unclude here if I wanted to automatically bypass the prompt for the password for this particular page? Or is this even possible?

Posted

If you're going to embed the password in the web page or url you might as well not have a password!

Set up Web Security to allow browse access only to "all users" for this database.

Posted

OK that code works great for a URL link.

Now what about on a web page where I have a spot to type in a find criteria and a submit button for the find. Here is the CDML for the submit button. Is there a way to include the username and password here so when the submit button is hit there is no pop-up window asking for the username and password?

<form action="FMPro" method="POST"><input type="hidden" name="-db" value="Products.FP5"> <input type="hidden" name="-lay" value="CGI"><input type="hidden" name="-format" value="summary.htm" <input type="text" name="User" value="" size=15> <input type="submit" name="-find" value="Submit"></form>

Posted

Try including the username and password in the url for the page *before* the form: that way the form's page will have the login info, and it may (only guessing) be also be submitted.

Posted

It can be done with "?username.password" URL ending and then with JavaScript. It can be then passed with the same to another page, filled in form or transferred with tokens.

Posted

just tried it and it seems to work.....

with Lasso but it's a HTTP thing so there is no reason why it shouldn't work with FMPro

....however I am interested in why you would want to include this infromation in the format file.....

laugh.giflaugh.gif

PS as Vaughan said the username and password is held in the browser from a previous URL so this is an option if you dont want to include it in the form action..

[ March 20, 2002, 03:29 AM: Message edited by: scratchmalogicalwax ]

Posted

OK, I will hop on and give it a try right now to see if I can get it to work.

The reason I want to include this...

I am using custom web publishing to serve up job timelines, budget reviews, file downloads and notes on a per job basis.

The client goes to our main client web page, types in their user name, and they are taken to a new page that lists all jobs currently open for them. They then click on a specific job link and go to a page showing all the details for the job.

On that same main client web page I want to put a Administration link. This link URL goes directly to the database (almost like it would in instant web publishing). The main database now comes up for remote use. Our staff thru the web browser can add, delete, change ect records.

Here is where the password comes in. I can password protect the database on the Filemaker end. This way when a staff member clicks on the Administrator link they are of course prompted for the password to gain administrator access. Clients simply go to the username field and enter their user name and hit the submit button. This of course then finds any records containing their user name and shows them the specific data I want them to see about their jobs.

LR

[ March 20, 2002, 08:31 AM: Message edited by: Larry Ross ]

This topic is 8360 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.