I've been messing around with this script for a week with no luck. Finally, today during lunch the problem popped into my head.
It's a simple script. Basically one function gathers information from the user and places them into the appropriate variables. Then, another function takes this information and inserts it to my MySQL database. So I ran the script over and over again, but blank fields would always turn up into the database.
Duh! One function can't access variables from another function without a work-around. So how exactly do I do this? I was thinking that I would need to use reference variables and parameters to pass the variables through from function to function. Am I on the right track?
Also could you point me to a lesson or some documentation to reference variables in PHP? Haven't used reference variables in a year and that was in C++, so I'm a little shaky.
Thanks in advance!