mam przykładowo taki kod
<?php // define variables and set to empty values $email = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $email = test_input($_POST["email"]); } function test_input($data) { return $data; } ?> <h2>PHP Form Validation Example</h2> <form action="<?php $_SERVER["PHP_SELF"];?>" method="post"> E-mail: <input type="checkbox" name="email"> <input type="submit" name="submit" value="Submit"> </form> <?php if("$email">"checked") { } ?>
Jako input wyświetla się strona iframe na tej samej stronie co jest formularz. Jak zrobić żeby się wyświetlała sama strona iframe ale bez formularza?
Dzięki!