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" ???? Link to comment Share on other sites More sharing options...
benanamen Posted October 19, 2018 Share Posted October 19, 2018 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. 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": 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.