Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Setting session variable to insert record key

New Here ,
Dec 07, 2009 Dec 07, 2009

application calls for a modified chat room scenario. I have a login screen where user inputs his screen name, no password or any further validation (they've already signed in and validated thru normal id/password routine. I'm writing screen name to mysql database via Insert Record method and would like to pass the screen name to the next web page but am unable to find a way to do so; I can't seem to bet the record key into a session variable and hold it for the next page to use/display. Help, please. Thanks, Michael

TOPICS
Server side applications
655
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 07, 2009 Dec 07, 2009

You need to tell us which scripting language you are using and provide sample code of setting and retrieving session variable.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 07, 2009 Dec 07, 2009

Great and thanks, you didn't say it wasn't possible so I'm hoping it is.  I two simple pages, test.php and test1.php. On test.php I've placed, via the Record Insertion Form Wizard, a form to add a record (one field) to a database. This part works, records are added and I can verify they're there. I've declared a session variable in the bindings window with the same name as the record field "call_sign".

In test1.php I've simply dragged the session variable to the page, nothing else. Thanks again, Michael

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 08, 2009 Dec 08, 2009
LATEST

Hello,

In this case you cannot "$_SESSION" variables becuase you are using normal insert form wizard. what you can use is in the deafult redirect page (after the insertion into the database) the "test1.php" is to create a new recordset filtered with the "RecordID" from the "members" table then add a dynamic text from the pending tab into the page >> instead of "<?php echo $_SESSION['call_sign']; ?>" because it won`t work.

__
Best Regards
Waleed Barakat
Developer-Online Creator and programmer

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines