Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en-US">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <script type="text/javascript">
- function test() {
- document.forms.form.str.value = encodeURI(document.forms.form.str.value);
- alert(document.forms.form.str.value);
- return true;
- }
- </script>
- </head>
- <body>
- <?php
- if (!empty($_POST)) {
- var_export($_POST);
- echo '<br/> decoded = ';
- echo urldecode($_POST['str']);
- }
- ?>
- <form action="" name="form" method="post" onsubmit="test()">
- <input type="text" name="str" value="Фамилия, Имя skúška ståle">
- <input type="submit" name="send" value="Send">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement