I'm in the slow process of transferring my contetn management system over to full object oreinted code.
I have a function within a class which gets the field name and type information from a mysql table, puts this into an array and then returns a table with a form field for each field. I specify switch case in my index.php where the form contents are posted to. Within this case is another function holding my INSERT query. The problem is that the value from my form do not seem to carry over. normally whatever my form field is named eg- Name is then posted as a variable $Name. $Name can then be Inserted into the database. In this case my field name is actually an array value (as the form is created in a 'while' loop)- ie $row[$a][1] My form is created correctly- (viewing source in a browser shows this) If I hard code values into my INSERT function (ie no variables) then the record inserts, but my variable values are lost. I have tried declaring the variable names as global variables within my insert function- and this doesnt work. Ideally I like to post these variables, perhaps to an array that can then be picked up by any instance of my class? Any ideas? Cheers Caspar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php