PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php error_reporting(E_ALL); ini_set('display_errors', 'on'); session_start(); if (isset($_REQUEST['product1'])) { $_SESSION['name'] = $_REQUEST['name']; $_SESSION['surname'] = $_REQUEST['surname']; $_SESSION['product1'] = $_REQUEST['product1']; var_dump($_SESSION); } ?> <html> <br><h1>СТРАНИЦА 2</h1></br> </br> </br> </br> </br> <form method="GET"> <!-- Кнопка 1 с переменной: name="submit_ok" --> <div class="cart_btn"> <input class="submit" type="submit" name="product1" value="Кнопка 1" style="font-size:16px;"/> &nbsp; &nbsp; &nbsp; <!-- Кнопка 2 --> <input class="submit" type="submit" name="submit" value="Нет, спасибо" style="font-size:16px;"/> </div> </form> </html>
Show:  
Copy Clear