I am in the process of building an application using PEAR::QuickForm and I have a question regarding how it refreshes. I have built a dual purpose form that allows people to add a value to a database on top and then all the values added in the database are displayed in a drop down box at the bottom of the form where users can remove values by selecting them.
The form is set to submit to itself and add the newly entered value into the database but every time I enter a new value it doesn’t appear in the drop down box. I have to do an extra refresh in order to get it to display and by that time the value that the user entered has been entered into the database twice.
I have two questions: first does anyone know why the value that the user entered in the form, after it is submitted, doesn’t immediately appear in the drop down box (if it is easier to see code, I can post it)? Second, when a QuickForm form is submitted to itself the values remain in the form elements after the page refreshes. How do you get the values to return blank after someone has submitted the form?
Any help is greatly appreciated.
The form is set to submit to itself and add the newly entered value into the database but every time I enter a new value it doesn’t appear in the drop down box. I have to do an extra refresh in order to get it to display and by that time the value that the user entered has been entered into the database twice.
I have two questions: first does anyone know why the value that the user entered in the form, after it is submitted, doesn’t immediately appear in the drop down box (if it is easier to see code, I can post it)? Second, when a QuickForm form is submitted to itself the values remain in the form elements after the page refreshes. How do you get the values to return blank after someone has submitted the form?
Any help is greatly appreciated.