In PHP programming, after data is queried through a form, how can the data be displayed? What should I do?

Source: Internet
Author: User
In PHP programming, after data is queried through a form, how can the data be displayed? For example, the form1 form has the ID, age, and sex fields, which correspond to an INPUT text box, enter the ID value, click the query button, and the action is submitted to the PHP processing page (mysql database query ), display the query result and ID field value to the INPUT text box corresponding to the form1 field. how to implement this PHP programming and solve the specific data display method after the form query data?
For example, the form1 form has the ID, age, and sex fields, which correspond to an INPUT text box, enter the ID value, click the query button, and the action is submitted to the PHP processing page (mysql database query ), display the query result and ID field value to the INPUT text box corresponding to the form1 field. how can this display function be implemented? Newbie solving? Urgent! Thank you!
------ Solution --------------------
Input value = "$ row [ID]"
------ Solution --------------------
Assume that the data you query is saved in the row array.
Write in your HTML code like this
" name="age" id="age" />
Miscellaneous

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.