Forum

/ Home \ \ Subjects /



Subject: Post form has bug.

21/07/2010 12:24 Rimifon:
the last input field value add a newline char on server side. iis no this problem.

when i click "Delete" button, the server return "AddNew". $_POST["Type"] value is "Delete
".

code:
switch($_POST["Type"])
{
case "Update":
echo "Update";
break;
case "Delete":
echo "Delete";
break;
default:
echo "AddNew";
break;
}

User: Password: New user:   Save password: