Skip to content

Instantly share code, notes, and snippets.

@fadyosman
Last active November 15, 2022 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fadyosman/4eb5c77a4ada731084e80da3359230ea to your computer and use it in GitHub Desktop.
Save fadyosman/4eb5c77a4ada731084e80da3359230ea to your computer and use it in GitHub Desktop.
Challenge code
<?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