Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($_POST['zipcode']) {
- $zipcode = trim($_POST['zipcode']);
- $zip_length = strlen($zipcode);
- if ($zip_length != 5) {
- print "Nem megfelelő számú karakter";
- }
- else {
- print "az irányítószám: $zipcode";
- }
- @h@
- @h@}
- @h@else {
- print <<<_HTML_
- <form method="post" action="$_SERVER[PHP_SELF]">
- Irányítószám: <input type="text" name="zipcode">
- <br/>
- <input type="submit" value="Elküld">
- </form>
- _HTML_;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement