Advertisement
Guest User

scrollbalken

a guest
Dec 20th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. echo "<form action='index.php' method='post'><br>";
  2.  
  3. for($i=1;$i<=5;$i++)
  4. {
  5. $ta = "<textarea style='";
  6. $ta.= "overflow: auto; ";
  7. $ta.= "resize: none; ";
  8. $ta.= "width: 400px; height: 26px; font-size: 20px; ";
  9. $ta.= "font-size: 20px; font-family: Times New Roman; font-weight: bold; ";
  10. $ta.= "' ";
  11. $ta.= "name='feld_".$i."' maxlength='10000' wrap='soft'>";
  12. echo $ta;
  13. echo "Textareafeld: ".$i;
  14. echo "</textarea><br>";
  15. }
  16.  
  17. echo "<br>".button("Klick",32,200,"00000","001")."</form>";
  18.  
  19. if(!empty($_POST))
  20. {
  21. echo "<HR>\$_POST<pre>\n";print_r($_POST);echo "</pre>\n<HR>";
  22. }
  23.  
  24.  
  25. function button($name,$hoch,$breit,$farbe,$nr)
  26. {
  27. $button = "";
  28. $button.= "<button name='nr_".$nr."' value='ja' style='width: ".$breit."px; height: ".$hoch."px'>";
  29. $button.= "<span style='color: #".$farbe."; background-color: #A1B9C5; cursor: pointer;'><b>";
  30. $button.= "&nbsp;&nbsp;".$name."&nbsp;&nbsp;";
  31. $button.= "</b></span></button> ";
  32. return $button;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement