Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. @$title = $_POST['k-title'];
  2. @$description = $_POST['k-desc'];
  3. $test = $_POST['data'];
  4. print_r($_POST);
  5.  
  6. if ($title == '' || $description == '') {
  7.  
  8. echo '<div>Error!</p></div>';
  9.  
  10. } else {
  11.  
  12. /* $szablon = file_get_contents("./index.php"); */
  13.  
  14. echo '<div style="max-width: 1050px; margin-left: auto; margin-right: auto;">';
  15. echo '<div style="padding-top: 50px; padding-bottom: 50px;">';
  16. echo '<p style="font-size: 30px; text-align: center;">'.$tytul.'</p>';
  17. echo '<p style="font-size: 15px; text-align: justify;">'.$opis.'</p>';
  18. echo '</div>';
  19.  
  20. echo '<div style="width: 100%; text-align: center; background-color: #eee; font-weight: 200; line-height: 0.92em; padding: 23px 0; font-size: 30px;">Random</div>';
  21. echo '<table style="font-size: 14px; border: none; border-top: 1px solid #dbdbdb; border-bottom: 1px solid #dbdbdb; width: 100%;" border="0" cellspacing="0" cellpadding="5px"><tbody>';
  22. echo '<tr>';
  23.  
  24. foreach($_POST['cecha'] as $cecha) {
  25.  
  26. echo '<td style="padding: 3px 10px; text-align: right; border-right: 1px solid #dbdbdb;" width="50%">' .$cecha. '</td>';
  27. }
  28.  
  29. foreach($_POST['cecha-opis'] as $cechaopis) {
  30.  
  31. echo '<td style="padding: 3px 10px; text-align: left;" width="50%">' .$cechaopis. '</td>';
  32. }
  33.  
  34. echo '</tr>';
  35. echo '</tbody></table>';
  36.  
  37.  
  38. foreach($_POST['sample'] as $sampletext) {
  39. echo $sampletext;
  40. }
  41.  
  42. echo '</div>';
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement