Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @$title = $_POST['k-title'];
- @$description = $_POST['k-desc'];
- $test = $_POST['data'];
- print_r($_POST);
- if ($title == '' || $description == '') {
- echo '<div>Error!</p></div>';
- } else {
- /* $szablon = file_get_contents("./index.php"); */
- echo '<div style="max-width: 1050px; margin-left: auto; margin-right: auto;">';
- echo '<div style="padding-top: 50px; padding-bottom: 50px;">';
- echo '<p style="font-size: 30px; text-align: center;">'.$tytul.'</p>';
- echo '<p style="font-size: 15px; text-align: justify;">'.$opis.'</p>';
- echo '</div>';
- 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>';
- 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>';
- echo '<tr>';
- foreach($_POST['cecha'] as $cecha) {
- echo '<td style="padding: 3px 10px; text-align: right; border-right: 1px solid #dbdbdb;" width="50%">' .$cecha. '</td>';
- }
- foreach($_POST['cecha-opis'] as $cechaopis) {
- echo '<td style="padding: 3px 10px; text-align: left;" width="50%">' .$cechaopis. '</td>';
- }
- echo '</tr>';
- echo '</tbody></table>';
- foreach($_POST['sample'] as $sampletext) {
- echo $sampletext;
- }
- echo '</div>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement