in reply to Re^3: How to get input text boxes populated
in thread How to get input text boxes populated

Hi Poj, I changed it to empid, but the behavior is still the same, still its not executing the update query, no updates are being sent to the database and even worse no errors are being displayed. There's got to be something else. Rgds Terry
  • Comment on Re^4: How to get input text boxes populated

Replies are listed 'Best First'.
Re^5: How to get input text boxes populated
by marto (Cardinal) on Jul 07, 2014 at 13:35 UTC

    "still the same, still its not executing the update query, no updates are being sent to the database and even worse no errors are being displayed. There's got to be something else"

    It seems like a good time for you to start debugging this problem for yourself to find out what that "something else" is. Tutorials->Debugging and Optimization->Basic debugging checklist.

    Update: Also, you're replying to yourself. Consider reading and understanding PerlMonks for the Absolute Beginner.

Re^5: How to get input text boxes populated
by poj (Abbot) on Jul 07, 2014 at 19:24 UTC
    To understand why the update block is not being executed add a debug line into the else part.
    } else { $msg = "Please complete form"; $msg.= "<br/>Debug : action=[$action] empid=[$empid]"; }
    You will have to change the regex $empid =~ /\d+/ in the if() to some other pattern if your EmployeeID's don't contain a number, or maybe just use $empid ne ''
    poj