pass variable to the form - Php

User 2301474 Photo


Registered User
2 posts

I have an web app that uses a data record MySQL to call the correct form. When exiting the form, I need to update the specific MySQL record that was used to select the form. This can not be hard, but I don't see anyplace to pass a variable to a form for display on the form or pass in the 'Submit'. I know I can write to a .txt and post process the file, but I need to include some key field that is passed to the form so I am assured to update the proper record.
I am using the latest 'Trial Forms Generator' with intent to purchase when I get past this stumble. The server is Apache2 with php5.

Thanks for a great product.
User 2733 Photo


Ambassador
426 posts

I don't understand the first sentence of this post but when you write, "When exiting the form," do you mean when submitting the form?

What are you trying to do precisely? Why not include a hidden field? Is your first form POSTing?
Let's not get all hurt.
User 2301474 Photo


Registered User
2 posts

A specific survey form is selected based on a field value in a MySQL record ( linked from a table cell filled by data record). I need to keep track of the record key so when I exit (Submit) the form I can update the proper MySQL record with the Form results. I guess I could let the form update a table (set up to receive the form info.) and then update a specific master record (different table same database). It just seems like I am making it harder then necessary. I just purchased the classic and will look into the hidden field.

David - such a serious picture.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.