My calling program has an input field with: name=‘userid’ and method =“POST”
At the start of my called program I have: $UserID=$_SESSION[‘userid’]
and I print and get: $UserID on pgm entry = index (that’s correct - comes from the calling program).
Then I have $UserID = $_POST[‘userid’]
and I print and get: $UserID after post = nicky (correct - ID entered by user)
later I link to my database, print and get: $UserID before query = index (HOW IS THIS POSSIBLE?)
Then I do my query which results in ID not found in database and AffectedRows = 0.
Yet, the id is in my database. (print after query is still $UserID = index
How does $UserID get changed back to “index” ??? Baffling!!!
I removed $UserID=$_SESSION[‘userid’] from my calling program and from my called program and I still get $UserID = index (HOW IS THIS POSSIBLE ???) - Even more baffling!!!