i am inserting data from the user input into the database. the database that i am using is ms sql. but i got an error which i dont understand. this is the error >>>> PHP Notice: Use of undefined constant submit - assumed 'submit' in C:\Inetpub\wwwroot\VisitorSurvey.php on line 38. what does this error mean? n how can i solve this error problem?
you're using an undefined constant, as simple as that. either define() it or check if you're missing a $ behind a variable, making the interpreter think it is a constant.
As above - although additionally if you're accessing an associative array using a key, this needs to be in quotes. I.e. rather than $_POST[submit] you must use $_POST['submit'].
Yeah, rodney88's on the right track... I would guess it's an unquoted string somewhere that is then assumed to be a constant which is undefined.