Guest User

Untitled

a guest
Dec 12th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <form id="addForm" enctype='multipart/form-data'>
  2. <input type=hidden name='action' value='add'>
  3. Имя:<input type=text name="name"><br><br>
  4. Возраст:<input type=text name="age"><br><br>
  5. Баллы:<input type=text name="points"><br><br>
  6. Город:<input type=text name="city"><br><br>
  7. <input type=file name="file" accept="image/*"><br><br>
  8. <input type=submit value="Добавить студента">
  9.  
  10. if (isset($_POST['action']) && $_POST['action']=='add')
  11. {
  12.  
  13. if (isset($_REQUEST['name'])) $name=$_REQUEST['name'];
  14. if (isset($_REQUEST['age'])) $age=$_REQUEST['age'];
  15. if (isset($_REQUEST['points'])) $points=$_REQUEST['points'];
  16. if (isset($_REQUEST['city'])) $city=$_REQUEST['city'];
Add Comment
Please, Sign In to add comment