• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP Help Needed!

KidViciou$

Diamond Member
i'm writing a survey application that is using PHP for the front end, and mysql for the back end

i basically am using a php file, login.php to be my "driver"

when a person enters a username and password that is found in the DB, a function userUI() is called to display which surveys they can take.

this is presented using an html form and drop down box. when they select the survey they want, the form logic is called, and if the surveyNum isn't 0 (Reserved for a blank select option), it will call a function takeSurvey()

the problem is, i can no longer access the global $db variable which maintains my database connection. i would have to make a new connection to the database which i'm trying to avoid. i can also no longer access ANY variables in login.php

this is my first time coding php, and i know that using the form is causing this problem, but i don't know how to get around it. any help? TIA
 
well i had already posted there before i posted here, but it seemed like a ghost town there 🙂

i'll do some resarch on sessions
 
Sometimes, I wake up in the morning and I wonder why do I bother to get out of bed. I mean, the temperature is comfortable, it's generally soft, and I can always call some sort of room service to me. Everything I could ever want is at hand. I look around and see the sun shining outside, birdsong slowly wafts in and lying beside me is this gorgeous woman. She purrs in bed, content little smile on her face like some ivory goddess in my arms. Looking softly at her it makes me realize..."I'm gonna have to pay this hooker when she wakes up"...so I start dressing for work.
 
Back
Top