•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 397,599 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,777 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1217 | Replies: 3 | Solved
•
•
Join Date: Mar 2007
Posts: 13
Reputation:
Rep Power: 2
Solved Threads: 0
Hi all, i need help on asp-sql code.
I have a form when I catch some infos and i want to create a new record into a database.
I have tried many syntax but I can't pass the variables a,b,c,d,e,f to sql string.
Please tell me how can i do it.
Thanks in advance, Roby.
I have a form when I catch some infos and i want to create a new record into a database.
I have tried many syntax but I can't pass the variables a,b,c,d,e,f to sql string.
Please tell me how can i do it.
asp Syntax (Toggle Plain Text)
<% a=Request.Form("LastName"); b=Request.Form("FirstName"); c=Request.Form("Street"); d=Request.Form("City"); e=Request.Form("Country"); f=Request.Form("Phone"); Response.write (a+" "+b+" "+c+" "+d+" "+e+" "+f); var sSQLString; sSQLString = "INSERT INTO tAuthors (LastName, FirstName, Street, City, Country, Phone) VALUES (a,b,c,d,e,f);" con.Execute(sSQLString); %>
Thanks in advance, Roby.
Last edited by peter_budo : Apr 4th, 2008 at 2:33 pm. Reason: Keep It Organized - please use [code] tags
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
- JSTL compare string (JSP)
- Shopping Cart Not Working (ASP.NET)
- PHP problem! (PHP)
- Very strange (PHP)
Other Threads in the ASP Forum
- Previous Thread: create dinamic dropdown box
- Next Thread: ASP Coding For Online System with SQL Server



Threaded Mode