Similar to the questionnaire in the HTML JS gets the user to choose the answer, how to pass the value to PHP

Source: Internet
Author: User
Tags html form
PHP Basic 0 Base, now urgently need to write a questionnaire page, in the Write submit button corresponding.
Through the loop to get all the answers to the question, put in an array, but also write the answer to get the result of the algorithm, a PHP file
But I do not know how to call this answer in the PHP file array, rather stupid, solve.


Reply to discussion (solution)

You always have to send it to PHP.

You always have to send it to PHP.



Yes, the result of this array is calculated from the code inside PHP.

Submitted to PHP, there are only two, 1, form submission 2, AJAX submissions

Do you have any idea what kind of use?

Direct post submission, calculation is not it?

Submitted to PHP, there are only two, 1, form submission 2, AJAX submissions

Do you have any idea what kind of use?



Could you please tell me about these two? Don't quite understand.

Direct post submission, calculation is not it?



Post submission how to write it = =

The content of your questionnaire is placed in a

In


Use $_post to get your Baidu.

form of action= ' php file '

Or you can submit it with Ajax.

Basic problem, imaginative achievement here inexpressible.

form submission, controlled by the form label, allows you to view HTML form content.
Ajax asynchronous processing, you can look at JS or jquery ajax-related content.

Landlord beginner, a lot of effort

  • 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.