hii,
I have written a class which is used to create HTML forms,data insert etc.. . Now to access the variables from the calling PHP I have to declare a lot of global variables inside my functions in the class. for eg. If I want to insert a record, I have an array called $fields. I pick up the field names,type etc from $fields[x] and create the html form and insert the user input into mysql using $$fields[x]. For this I need to declare $fields and $$fields[x] as global in my function to get the values.
Is there any other way so that I dont need to use the global variables but still be able to do the data insert?.