Fedin_p14 - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of Fedin_p14.php

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.     <title>Федин</title>
  8. </head>
  9. <body>
  10.     <form method = "post" action = "index.php">
  11.         <pre>
  12.             Введите номер заказа
  13.             <input type = "text" name = "number" size = "10" maxlength = "5" value = "00000">
  14.  
  15.             Детали заказа
  16.             <textarea name = "describe" cols = "40" rows = "4" wrap = "hard"></textarea>
  17.  
  18.             Я согласен с условиями доставки
  19.             <input type = "checkbox" name = "agree" value = "1">
  20.             Подарок за ваш заказ мороженое
  21.             Ванильное <input type = "checkbox" name = "ice[]" value = "Vanilla">
  22.             Шоколадное <input type = "checkbox" name = "ice[]" value = "Chocolate">
  23.             Земляничное <input type = "checkbox" name = "ice[]" value = "Strawberry">
  24.             Выберите время доставки
  25.             8-12 <input type = "radio" name = "time" value = "1">
  26.             12-16 <input type = "radio" name = "time" value = "2" checked = "checked">
  27.             16-20 <input type = "radio" name = "time" value = "3">
  28.             Выберите один из овощей
  29.             <select name = "veg" size = "1">
  30.                 <option value="Горох">Горох</option>
  31.                 <option value="Фасоль">Фасоль</option>
  32.                 <option value="Морковь">Морковь</option>
  33.                 <option value="Капуста">Капуста</option>
  34.                 <option value="Брокколи">Брокколи</option>
  35.             </select>
  36.             Выберите несколько фруктов (Используйте SHIFT или CTRL)
  37.             <select name = "fru" size = "1" multiple = "multiple">
  38.                 <option value="Яблоко">Яблоко</option>
  39.                 <option value="Груша">Груша</option>
  40.                 <option value="Виноград">Виноград</option>
  41.                 <option value="Киви">Киви</option>
  42.                 <option value="Апельсин">Апельсин</option>
  43.             </select>
  44.  
  45.             Оцените работу сервиса
  46.             <label>Хорошо<input type = "radio" name = "estimate" value = "1"></label>
  47.             <label>Превосходно<input type = "radio" name = "estimate" value = "2"></label>
  48.  
  49.             Пример кнопки
  50.             <input type = "submit" value = "Make an order">
  51.  
  52.              <!-- Задания -->
  53.  
  54.             <input type = "text" name = "number" size = "10" maxlength = "5" placeholder = "Плейсхолдер">
  55.             <input type = "text" name = "number" size = "10" maxlength = "5" value = "Value">
  56.             <input type = "text" name = "number" size = "10" maxlength = "5" disabled value = "disabled!">
  57.             <input type = "password" name = "number" size = "10" maxlength = "5"  value = "disabled!">
  58.             <input type = "button" name = "number" size = "10" maxlength = "5"  value = "Кнопка тег input">
  59.             <input type = "button" name = "number" size = "10" maxlength = "5"  value = "Кнопка тег button">
  60.             <input type = "text" name = "number" size = "10" maxlength = "5"  placeholder = "Плейсхолдер"> Это метка для инпута нажми на меня и я получу фокус
  61.             <input type = "submit" name = "number" size = "10" maxlength = "5"  value = "Отправить на сервер">
  62.             <input type = "checkbox" name = "ice[]" value = "Vanilla"> Это метка для чекбокса нажми меня чекбокс сменит галочку!
  63.             <input type = "checkbox" name = "ice[]" value = "Chocolate" checked = "checked"> Я отмечен по умолчанию!
  64.             <input checked = "checked" disabled type = "checkbox" name = "ice[]" value = "Strawberry"> Я disabled!
  65.             Это группа радиокнопок - только одна из них может быть отмечена!
  66.             <input type = "radio" name = "time"> Это метка для радио
  67.             <input type = "radio" name = "time"> Это метка для радио
  68.             <input type = "submit" name = "number" size = "10" maxlength = "5"  value = "Отправить на сервер">
  69.             <select name = "cities" size = "1">
  70.                 <option value="Минск">Минск</option>
  71.                 <option value="Москва">Москва</option>
  72.                 <option value="Киев">Киев</option>
  73.                 <option value="Нью-Йорк">Нью-Йорк</option>
  74.                 <option value="Варшава">Варшава</option>
  75.             </select>
  76.             <select name = "cities1" size = "3" multiple = "multiple">
  77.                 <option value="Минск">Минск</option>
  78.                 <option value="Москва">Москва</option>
  79.                 <option value="Киев">Киев</option>
  80.                 <option value="Нью-Йорк">Нью-Йорк</option>
  81.                 <option value="Варшава">Варшава</option>
  82.             </select>
  83.             <select name = "cities2" size = "5" multiple = "multiple">
  84.                 <option value="Минск">Минск</option>
  85.                 <option value="Москва">Москва</option>
  86.                 <option value="Киев">Киев</option>
  87.                 <option value="Нью-Йорк">Нью-Йорк</option>
  88.                 <option value="Варшава">Варшава</option>
  89.             </select>
  90.             <input type = "submit" name = "number" size = "10" maxlength = "5"  value = "Отправить на сервер">
  91.         <pre>
  92. </body>
  93. </html>
File Description
  • Fedin_p14
  • PHP Code
  • 23 Dec-2022
  • 5.95 Kb
You can Share it: