Просмотр файла vote/form.php

Размер файла: 1.41Kb
<? 
	#=====================================================#
	#             Programmed By Giga                      #
	#             (c) 2006 Votes xhtml mp v 0.1           #
	#             site http://gwap.net.ru                 #
	#             example http://gwap.net.ru              #
	#             elaboration xhmtl mp scripts            #
	#                     [email protected]                      #
	#=====================================================#
	$result = file("vote/vote.txt");
	$name_answer = trim($result[0]);
    $result1 = trim($result[1]);
    $result1 = explode('|',$result1);
    $a1 = $result1[0];
    $result2 = trim($result[2]);
    $result2 = explode('|',$result2);
    $a2 = $result2[0];
    $result3 = trim($result[3]);
    $result3 = explode('|',$result3);
    $a3 = $result3[0];
    $result4 = trim($result[4]);
    $result4 = explode('|',$result4);
    $a4 = $result4[0];
    $result5 = trim($result[5]);
    $result5 = explode('|',$result5);
    $a5 = $result5[0];
      echo "<form action=\"vote/vote.php\" method=\"post\"><div>
  $name_answer<br />
  	  <select name=\"op\">
  <option value=\"1\">$a1</option>
  <option value=\"2\">$a2</option>
  <option value=\"3\">$a3</option>
  <option value=\"4\">$a4</option>
  <option value=\"5\">$a5</option>
  	  </select>
  	  <br />
  	  <input type=\"submit\" value=\"голосовать\" />
  	  </div>
  	  </form>";

	?>