Ответов: 6 Просмотров: 459
|
выдает пустой массив
подробно все 3 страницы
стр1
CODE ( text):
скопировать код в буфер обмена
<html lang="en"> <head> <meta charset="utf-8"> <title>Страница1</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="../template/css/main.css" rel="stylesheet"> </head> <body> <form action="/2.php" method="post" target="_blank"> <textarea class="input1" cols = "120" name="222" readonly>Название товара</textarea> <input class="input2" type="text" value="$ 100" name="333" readonly> <input type="submit" value="Submit"> </form> </body> </html>
стр2
CODE ( text):
скопировать код в буфер обмена
<head> <title>страница2</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="../template/css/main.css" rel="stylesheet"> </head> <body> <form action="/3.php" id="form2" method="post" name="order1"> <input class="input1" type="text" value="<?php echo $_POST["222"]; ?>" name="product2" readonly> <input class="input1" type="text" value="<?php echo $_POST["333"]; ?>" name="product3" readonly> </form> <form action="/3.php" id="form1" method="post" name="order"> <input type="text" name="name" placeholder="Name*"> <input type="text" name="surname" placeholder="Surname*"> <input type="text" name="email" placeholder="Email*"> <input type="text" name="state" placeholder="State"> <input type="text" name="address" placeholder="Address"> <input type="text" name="postcode" placeholder="Postcode*"> <input style="background: #fe980f;align-items: center; margin-left: calc(43%);width:calc(10%);font-size: 20px;" class="check_out" type="Submit" form="form1" name="submit" id="submit" value="Submit"> </form> </body> </html>
стр3
CODE ( text):
скопировать код в буфер обмена
<html lang="en"> <head> <title>страница3</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="../template/css/main.css" rel="stylesheet"> </head> <body> <h3>Product name: <?php echo htmlspecialchars($_POST["product2"]); ?></h3> <h3>Price: $ <?php echo htmlspecialchars($_POST["product3"]); ?></h3> <h3>Delivery address: <?php echo $_POST["state"]; ?>, <?php echo $_POST["address"]; ?></h3> <h3>Your e-mail: <?php echo $_POST["email"]; ?></h3> </body> </html>
|