John B
|
| Posted: 05/07/2002, 1:57 PM |
|
Hi again!
My client wants the following and hoping someone can help figure this out. I'm working in PHP.
I have a Header menu with four images:
[Browse Users] [Browse Contacts] [Edit My User Record] [Logout]
How do I pass the session UserID as part of the URL from the "Edit My User Record" image, such as http://www.thedomain.com/db/UserRecordEdit.php?<UserID>;,
so the user is taken directly to the Record Edit page matching their login ID? At present this menu image contains a link to http://www.thedomain.com/db/UserRecordEdit.php
Some Possibilities?:
* Pass the UserID session variable with the URL through some kind of event on the header/menu page. [Doesn't look likely.]
* Use a Where statement to be sure the only form shown is the one with a matching UserID -- I've tried this and can't get it working.
* Use an event (Open, Before Show) to be sure the displayed form/page matches UserID.
How can I do this??
I'll write a Tip/Article for the group if that would be helpful.
THANKS!
John
jblood@beholdlearning.com
|
|
|
 |
John B.
|
| Posted: 05/07/2002, 3:31 PM |
|
Hi all!
I figured it out. It took awhile. My session variable was set correctly, and the input was configured correctly. The form would not work.
I discovered that in moving fields on the form, I had inadvertantly selected Project_Brief selected as a Key Field. Doh!
Clicking that off, regenerating and double-checking the variables, and then refreshing the page in my browser were all it took for it to work.
Thanks all for your help!
John
|
|
|
 |
|