Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "<form action='index.php' method='post'><br>";
- for($i=1;$i<=5;$i++)
- {
- $ta = "<textarea style='";
- $ta.= "overflow: auto; ";
- $ta.= "resize: none; ";
- $ta.= "width: 400px; height: 26px; font-size: 20px; ";
- $ta.= "font-size: 20px; font-family: Times New Roman; font-weight: bold; ";
- $ta.= "' ";
- $ta.= "name='feld_".$i."' maxlength='10000' wrap='soft'>";
- echo $ta;
- echo "Textareafeld: ".$i;
- echo "</textarea><br>";
- }
- echo "<br>".button("Klick",32,200,"00000","001")."</form>";
- if(!empty($_POST))
- {
- echo "<HR>\$_POST<pre>\n";print_r($_POST);echo "</pre>\n<HR>";
- }
- function button($name,$hoch,$breit,$farbe,$nr)
- {
- $button = "";
- $button.= "<button name='nr_".$nr."' value='ja' style='width: ".$breit."px; height: ".$hoch."px'>";
- $button.= "<span style='color: #".$farbe."; background-color: #A1B9C5; cursor: pointer;'><b>";
- $button.= " ".$name." ";
- $button.= "</b></span></button> ";
- return $button;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement