hi all,
I'm designing my website and I create a form page and connected with asp code :this is the code
=======
<%
USER NAME= trim(request.form("USER NAME"))
E-MAIL= trim(request.form("E-MAIL"))
PASSWORD= trim(request.form("PASSWORD"))
CONFIRM PASSWORD= trim(request.form("CONFIRM PASSWORD"))
FIRST NAME= trim(Request.Form("FIRST NAME"))
LAST NAME= trim(Request.Form("LAST NAME"))
SEX= trim(request.form("SEX"))
DATE OF BIRTH= trim(request.form("DATE OF BIRTH"))
PO BOX= trim(request.form("PO BOX"))
PC= trim(request.form("PC"))
mysql="Insert into pro(USER NAME,E-MAIL,PASSWORD,CONFIRM PASSWORD,FIRST NAME,LAST NAME,SEX,DATE OF BIRTH,PO Box,PC,) values('"&USER NAME&"','"&E-MAIL&"','"&PASSWORD&"','"&CONFIRM PASSWORD&"','"&FIRST NAME&"','"&LAST NAME&"','"&SEX&"','"&DATE OF BIRTH&"','"&PO BOX&"','"&PC&"')"
Set con=Server.CreateObject("ADODB.Connection")
con.Open "DSN=project2"
con.Execute mysql
response.write "you are now a member"
%>
but it shows error when I press the button submit
this is the error
===
Expected end of statement
/joooj/jonline/regis2.asp, line 9, column 8
DATE OF BIRTH= trim(request.form("DATE OF BIRTH"))
-------^
please help me ..
thank you