Hello All:
FMP Advanced 9.01 Mac
-Published via IWP
-I have a database where each record is a city, and carries info such
as hotel, contact, travel, meals, etc. for each city (record).
-I would like to have people enter info into a record that corresponds
to their city. For instance, the hotel would access the record for
their city, and be able to enter their phone number, or address, etc.
One solution is to break up the database and have a bunch of databases
with just one record, then the hotel would go to the home page and
click their 'city', and be prompted for Login/Pass. The problem with
that is I would have to have hundreds of open databases on my desktop.
I don't really like this solution.
My "grand plan!" is to have each record generate a random password,
then email it to the hotel, and when the hotel enters that password on
the webpage, it takes him to the related record. They would only be
able to see and edit 'their' record...
I can't figure out how to USE the password in the login page. Maybe I
could let everyone through the home page, but then the first page of
the database is a login page that I build, where I could use the
entered number to jump to the related record?
Any ideas would be greatly appreciated!
JP

Signature
“Travel is fatal to prejudice, bigotry and narrow-mindedness.”
-Mark Twain
Nicolay Flaaten - 24 Aug 2008 18:07 GMT
> Hello All:
>
[quoted text clipped - 26 lines]
> Any ideas would be greatly appreciated!
> JP
I am planning something similar as you where hotels can update
information about themselvs, and my idea is to use a relationship where
the password and a username is the relationship primary key, so the
hotel only see this one record. You then must hava a second database
where you creats a relationship based on the username and password, and
through this relationship you will see only this one record with the
matching username and password.
I think it maybe can be one solution to crate a script that contains:
-from the hotel recrod, you start the script.
-it creats a password and username and sets this in the username and
password field on the current record.
-it creats a useraccunt with the username and password
-it creats a url to the database where you have the username and
password in the url so you get right to the database and the login
screen with the username and password already entered (I think this is
possible..)
-it creats a email to the hotelboss and sends some info about pleas
update and click the url.
the boss now goes to the webpage with the url and is logged in to the database.
-it sets the username and passwordfield with data, so the relationship
with the one record information is displayed
-it goes to one field, so it is in edit mode
-the hotelboss enters the information and hits Save.
-the scripts continues with commit record, and you can see the edited
info and do something more. When you are finisched you have to confirm
the entered information
-when confirming the useraccount is deleted and then you wil be logged out.
What do you think?
Nicolay
Jonathan Peirce - 25 Aug 2008 00:13 GMT
>> Hello All:
>>
[quoted text clipped - 58 lines]
>
> Nicolay
I think I solved it. Basically I have a password field filled with a
random number on each record. I have FM email the number to the hotel,
and then when they go to the page,
the opening script is a 'find', they type in their password, and it
takes them to the related record.
JP

Signature
“Travel is fatal to prejudice, bigotry and narrow-mindedness.”
-Mark Twain
Nicolay Flaaten - 25 Aug 2008 13:34 GMT
>> What do you think?
>>
[quoted text clipped - 6 lines]
> takes them to the related record.
> JP
But then you must make shure that the user dont get acces to the rest
of the database somehow, and that the acces dont stands open for ever...
I think you can solve it your way, but be careful.
Nicolay
Jonathan Peirce - 06 Sep 2008 20:45 GMT
>>> What do you think?
>>>
[quoted text clipped - 12 lines]
>
> Nicolay
Agreed. But with a random 6 number PIN (100,000 possibilities) and 365
unique records, I am hoping no one guesses another PIN. I can put in a
script that quits after 3 incorrect attempts, I think.
JP

Signature
“Travel is fatal to prejudice, bigotry and narrow-mindedness.”
-Mark Twain