Last active
November 15, 2022 21:18
-
-
Save fadyosman/4eb5c77a4ada731084e80da3359230ea to your computer and use it in GitHub Desktop.
Challenge code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Try it a : http://ec2-54-242-83-247.compute-1.amazonaws.com/?id=asd | |
if(preg_match("/^[a-zA-Z0-9]+$/",$_REQUEST['id'])) { | |
echo "You entered: ".$_GET['id']; | |
} else { | |
echo "Sorry only alphanumeric characters are allowed."; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment