Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" name="form_name">
- <input type="text" name="name_input1" value="<?php $input1 = $_POST['input1'] ?>" class="form-control" placeholder="description 1"><p>
- <br/>
- <input type="text" name="name_input2" value="<?php $input2 = $_POST['input2'] ?>" class="form-control" placeholder="description 2"><p>
- <select name="name_select" value="<?php $select1 = $_POST['select1'] ?>" class="form-control">
- <option value="option 1">name 1</option>
- <option value="option 2">name 2</option>
- <option value="option 3">name 3</option>
- <option value="option 88" disabled>name 88</option>
- </select><p>
- <input type="submit" name="form_name" class="btn btn-primary" value="Сгенерировать"><p>
- <?php
- if( isset( $_POST['form_name'] ) )
- {
- $input1 = htmlspecialchars($input1);
- $input2 = htmlspecialchars($input2);
- $select1 = htmlspecialchars($select1);
- // выбор option 1
- echo '<textarea>какое name_select будет выбрано, тот текст и покажет, '.@input1.' сможет сказать '.@input2.' что выбрано ('.@select1')</textarea>';
- // выбор option 2
- echo '<textarea>какое name_select будет выбрано, тот текст и покажет, '.@input1.' сможет сказать '.@input2.' что выбрано ('.@select1')</textarea>';
- // выбор option N
- echo '<textarea>какое name_select будет выбрано, тот текст и покажет, '.@input1.' сможет сказать '.@input2.' что выбрано ('.@select1')</textarea>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement