eco Posted July 30, 2010 Share Posted July 30, 2010 Hi all, I hope this is the right place for this post. I have an application that will write data to a db but if information is missing, the user should be prompted to complete the data before being submitted to the db. The prompt would originally have two combo boxes and a search field (Category, sub-category and search paten). If a cat or sub cat does not exist, by selecting 'new' one should be prompted with a text box to add a row to the drop down. The dropdown are picked up from the db. I was thinking of using a popup for this but I think (still very much a newb so correct me if I'm wrong) a form can only send a single 'item' be it a variable or an array but not two or more. I was just wondering how you would go about prompting a user for more information and then returning to the original screen in the original state it was in. Thanks for any advice. Quote Link to comment Share on other sites More sharing options...
T-Bird Posted August 1, 2010 Share Posted August 1, 2010 An HTML form can send as many pieces of information as you want. For each field in the form you want to get the data out of, add the 'name' attribute. Then the php script that receives the data can that information through the $_GET (or $_POST, or $_REQUEST) superglobal array. More information about forms: http://w3schools.com/html/html_forms.asp More information about $_GET: http://w3schools.com/php/php_get.asp I hope I understood your question correctly. Quote Link to comment Share on other sites More sharing options...
eco Posted August 1, 2010 Author Share Posted August 1, 2010 You did, thanks a lot for the feedback. I'll browse through the links you gave me and a bit more... a lot to learn Thanks again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.