Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- form.html
- <html>
- <head>
- <title>A form</title>
- </head>
- <body>
- <form method = "get" action = "test.php">
- <input type = "text" name = "tb" />
- <input type = "submit" value ="Is it a Palindrome?"/>
- </form>
- </body>
- </html>
- test.php
- <html>
- <body>
- <?php
- $input = $_GET["tb"];
- $ulta = strrev($input);
- if($input == $ulta) echo "Ye to palindrome nikla! xD";
- else echo "Ye to palindrome nahi hai! :(";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement