jayinhalifax Posted October 19, 2018 Share Posted October 19, 2018 i have the following code: But get the following error message: "Notice: Undefined index: task in C:\xampp\htdocs\history8.php on line 25" ???? Quote Link to comment Share on other sites More sharing options...
benanamen Posted October 19, 2018 Share Posted October 19, 2018 (edited) You are trying to use a variable before it exists. You already have an isset in the next line. Just put your GET there instead of creating a variable for nothing. In the future, post your code. Pictures are for hanging on the wall. Edited October 19, 2018 by benanamen Quote Link to comment Share on other sites More sharing options...
jayinhalifax Posted October 19, 2018 Author Share Posted October 19, 2018 how do i do that my friend? $task = $_GET['task']; if(isset($task)){ //if they have performed an action, lets get the row ID $id = $_GET['id']; //This will be null for a new entry switch(strtolower($task)){ case "select": case "edit": Quote Link to comment Share on other sites More sharing options...
requinix Posted October 19, 2018 Share Posted October 19, 2018 12 minutes ago, jayinhalifax said: how do i do that my friend? How to do... what? Move a line of code from one place to another place? Because that's what he was saying you need to do. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.