Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
You need to tell us which scripting language you are using and provide sample code of setting and retrieving session variable.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now