/* If you want to add other options, you can add them directly */ }else{ $descArray=array(1=>"More information", 2=>"More beautiful web pages", 3=>"No improvement", 4=>"Others" ); $poll_resultBarHeight = 9; // height in pixels of percentage bar in result table $poll_resultBarScale = 1; // scale of result bar (in multiples of 100 pixels) $poll_tableHeader="
Note: From the above we can see the basic process of the voting system : 1. Open the file and get the data into the array $curArray (if the file does not exist, initialize the array $curArray) 2. Edit the array and process the data to get the required value 3. Calculate the percentage and control the statistical bar image width 4. The data is saved to "data.pol" One thing to note here is that the data.pol text file here requires write permission.
The above has introduced the PHP newbies, please take care of me (9), including the content of the newbies, please take care of me. I hope it will be helpful to friends who are interested in PHP tutorials.
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn