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
Similar to the questionnaire in the HTML JS gets the user to choose the answer, how to pass the value to PHP
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.
------Solution--------------------
You always have to send it to PHP.
------Solution--------------------
Submitted to PHP, there are only two, 1, form submission 2, AJAX submissions
Do you have any idea what kind of use?
------Solution--------------------
Direct post submission, calculation is not it?
------Solution--------------------
The content of your questionnaire is placed in a In
Use $_post to get your Baidu.
------Solution--------------------
form of action= ' php file '
Or you can submit it with Ajax.
------Solution--------------------
Basic problem, imaginative achievement here inexpressible.
------Solution--------------------
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.
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.