isbn - 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.
Result of php executing
Full code of isbn.php
- <?php
- if (filter_input(INPUT_POST, 'registreren')) {
- $isbn = filter_input(INPUT_POST, 'isbn', FILTER_VALIDATE_REGEXP, ['options' => ['regexp'=>"/^[0-9]{3}-[0-9]{2}-[0-9]{3}-[0-9]{4}-[0-9]$/"]]);
- var_dump($isbn);
- }
- ?>
- <form action="" method="post">
- <label>ISBN: <input type="text" name="isbn" pattern="^[0-9]{3}-[0-9]{2}-[0-9]{3}-[0-9]{4}-[0-9]$" placeholder="XXX-XX-XXX-XXXX-X"></label>
- <input type="submit" value="Verzenden" name="registreren">
- </form>
File Description
- isbn
- PHP Code
- 19 Feb-2020
- 493 Bytes
You can Share it:
Latest PHP Pastes