jazzyj99
04-02-2005, 09:38 PM
I'm hoping someone has a reason why the following code works correctly if someone inputs any characters other then an ' or should I say an apostrophe in my form. I'm sure it has to do with how I coded my mySQL="INSERT string. Could someone or anyone please help???
tmpFirst = Request.Form("first")
tmpLast = Request.Form("last")
tmpCompany = Request.Form("company")
mySQL="INSERT INTO [testdb].[contactus]([first], [last], [company]) VALUES(' " & tmpFirst &" ', ' " & tmpLast &" ', '" & tmpCompany &" ') "
Thanks,
Jeff
P.S. I'm using ASP and MYSQL
tmpFirst = Request.Form("first")
tmpLast = Request.Form("last")
tmpCompany = Request.Form("company")
mySQL="INSERT INTO [testdb].[contactus]([first], [last], [company]) VALUES(' " & tmpFirst &" ', ' " & tmpLast &" ', '" & tmpCompany &" ') "
Thanks,
Jeff
P.S. I'm using ASP and MYSQL