
May 21st, 2003, 02:35 AM
|
|
Junior Member
|
|
Join Date: May 2003
Location: buckeye, az
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
need help dynamically creating new field in flash mx/PHP database editing app
I need to add the ability for my users to add a new field to the view/edit form section of the flash front end of the flash/PHP/mySQL database editing application that I'm working on. Below is what I've done so far. If I'm going about it wrong, please help me figure out what I need to change about my approach. If I am doing it right, please help me figure out how to remedy this problem that I've come across.
I created an input field for the user to enter a label for the new field and defined that input field as having the variable name "inputData". I then dynamically create both a static text field("fieldLabel") and an input text field("newField") from a single button. I set the static text field's text property as a reference to the "inputData" variable so that the user's entered data will appear as a label for the new input field. I set the variable name of the new input text field to a reference to the "inputData" variable as well. The reason that I did this is that I'm wanting to add a variable to an array of variables that I'm passing to my PHP script that has the "inputData" string as the name and the string from the "newField" input text field as the value. The PHP script will then add the new field into the mySQL table and return the proper data to update the flash front end movie.
I'm pretty sure I'm at least close to being correct, but please, HELP!
|