By billp44ruby on
I've used the Form API to create a form. Default values for input fields are filled based on data stored in the MySQL database so that when the form is displayed all fields are filled with default values. Simple enough.
Now I have a client that wants to pass data into the form via http post url data passing. So, the question:
-- If data is passed into the form in this manner will it override the default values that are populated when the form is generated?
-- If not, is there a simple method to accomplish this? I presume I could use some sort of hook_form_alter function to build the form without extracting data from the database, but I'd prefer not to go down this route.
Thanks.
Comments
Do you mean that the client
Do you mean that the client want to submit form using http post url ? if yes then the values will override the default values.
What I mean
is that the client will have a form where they will collect certain pieces of information. That information will be passed to my form via an http post url. I think we're saying the same thing and that it will override the default values. But I just wanted to verify that.
Thanks for your response.