Click here to Skip to main content
15,914,225 members
Home / Discussions / Web Development
   

Web Development

 
GeneralError receiving array data via SOAP Pin
EnkelIk30-Jan-03 1:22
EnkelIk30-Jan-03 1:22 
GeneralRe: Error receiving array data via SOAP Pin
EnkelIk30-Jan-03 3:00
EnkelIk30-Jan-03 3:00 
GeneralCase solved Pin
EnkelIk4-Feb-03 23:16
EnkelIk4-Feb-03 23:16 
Generalwhitespace and HTML textbox Pin
devvvy29-Jan-03 21:18
devvvy29-Jan-03 21:18 
GeneralRe: whitespace and HTML textbox Pin
DFU2330-Jan-03 10:26
DFU2330-Jan-03 10:26 
GeneralRe: whitespace and HTML textbox Pin
devvvy30-Jan-03 12:26
devvvy30-Jan-03 12:26 
QuestionWhat is wrong with this ASP code? Pin
rsasalm_29-Jan-03 12:10
rsasalm_29-Jan-03 12:10 
AnswerRe: What is wrong with this ASP code? Pin
DFU2330-Jan-03 10:22
DFU2330-Jan-03 10:22 
The code that you showed above is all client-side script. ASP is server-side script.

Try this:

First remove all of the javascript from your page (because it's really not doing anything that you want it to do).

Second, under <%@ LANGUAGE="VBSCRIPT" %> insert this:
<%
Sub myfunction()
  Dim name, email, tel, rabbid, pword, DBConn

  name = Request.Form("Name")
  email = Request.Form("Email")
  tel = Request.Form("Telefon")
  rabbid = Request.Form("Rabbid") 'Put a name in for the select in your HTML
  pword = Request.Form("Password")

  Set DBConn = Server.CreateObject("ADODB.Connection")
  DBConn.Open("Shop")
  DBConn.Execute("insert into tblcustomer values (1,'" & name & "','" & email & "','" & tel & "'," & rabbid & ",'" & pword & "')")
  DBConn.Close
  Set DBConn = Nothing
End Sub

If Request.Form("B1") = "Add a customer" Then
  myfunction()
  Response.Write("New Customer Inserted!")
  Response.End
End If
%>


Hopefully this will get you on your way.

Wally Atkins
Newport News, VA, USA

GeneralTab control Pin
georgiek5029-Jan-03 11:53
georgiek5029-Jan-03 11:53 
GeneralRe: Tab control Pin
DFU2330-Jan-03 9:12
DFU2330-Jan-03 9:12 
Generalstyle sheets in email Pin
moinuddin29-Jan-03 5:21
moinuddin29-Jan-03 5:21 
GeneralRe: style sheets in email Pin
DFU2329-Jan-03 8:51
DFU2329-Jan-03 8:51 
GeneralRe: style sheets in email Pin
Vasudevan Deepak Kumar30-Jan-03 17:13
Vasudevan Deepak Kumar30-Jan-03 17:13 
GeneralChecking if am ASP session is still active Pin
David Wulff28-Jan-03 14:57
David Wulff28-Jan-03 14:57 
GeneralRe: Checking if am ASP session is still active Pin
Paul Watson29-Jan-03 3:12
sitebuilderPaul Watson29-Jan-03 3:12 
GeneralRe: Checking if am ASP session is still active Pin
DFU2329-Jan-03 8:25
DFU2329-Jan-03 8:25 
GeneralRe: Checking if am ASP session is still active Pin
David Wulff31-Jan-03 8:48
David Wulff31-Jan-03 8:48 
GeneralRe: Checking if am ASP session is still active Pin
Jonavis19-Feb-03 22:43
Jonavis19-Feb-03 22:43 
GeneralADO error Pin
MikeC#28-Jan-03 0:50
MikeC#28-Jan-03 0:50 
GeneralRe: ADO error Pin
SimonS28-Jan-03 0:58
SimonS28-Jan-03 0:58 
GeneralRe: ADO error Pin
Sarvesvara (BVKS) Dasa28-Jan-03 1:40
Sarvesvara (BVKS) Dasa28-Jan-03 1:40 
GeneralNeed an IDE Pin
Sarvesvara (BVKS) Dasa27-Jan-03 23:18
Sarvesvara (BVKS) Dasa27-Jan-03 23:18 
GeneralRe: Need an IDE Pin
SimonS28-Jan-03 1:07
SimonS28-Jan-03 1:07 
GeneralRe: Need an IDE Pin
Sarvesvara (BVKS) Dasa31-Jan-03 20:53
Sarvesvara (BVKS) Dasa31-Jan-03 20:53 
GeneralRe: Need an IDE Pin
Richard Deeming28-Jan-03 4:10
mveRichard Deeming28-Jan-03 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.