Jump to content
MakeWebGames

Get action


boionfire81

Recommended Posts

So in most cases this has been my default/go to for defining a switch get action

 

$_GET['action'] = isset($_GET['action'])  && ctype_alpha($_GET['action']) ? $_GET['action'] : null;

 

But lately all that line has been doing is rendering an action unusable. As defining thing is my worst area, I think, can anyone help clue me in as to in which cases that line would not work.

Link to comment
Share on other sites

So in most cases this has been my default/go to for defining a switch get action

 

$_GET['action'] = isset($_GET['action']) && ctype_alpha($_GET['action']) ? $_GET['action'] : null;

 

But lately all that line has been doing is rendering an action unusable. As defining thing is my worst area, I think, can anyone help clue me in as to in which cases that line would not work.

 

if you have used that from my code that is because i don't use numbers when adding a new switch statement with a get variable

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...