%@ Language=VBScript %>
<% Set discConn=Server.CreateObject("ADODB.Connection") Set rs=Server.CreateObject("ADODB.RecordSet") connpath = "DBQ=" & server.mappath("orderdetail.mdb") discConn.open "DRIVER={Microsoft Access Driver (*.mdb)};" & connpath %> <%sql="select order_id from orderdetails where id=(select max(id) from orderdetails)" set rs=discConn.execute(sql) dt=Date dt=Formatdatetime(dt,vblongdate) str=rs("order_id") a=instr(4,str,"/") db1=mid(str,4,(a-4)) val=cint(db1) val=val+1 str1="ord" & "00" & val & "/" &dt %> <% noofkeys=Request.Form("totalamt") total2=Request.Form("total") gtot=Request.Form("gtotal") stax=Request.Form("salestax") nam=request.form("name") addr=Request.Form("address") email=Request.Form("email") phone=Request.Form("phone") freight=Request.Form("freight") ctr=0 messg="" if email <>"" then emailcheck end if private sub emailcheck() tctr=0 for i=1 to len(email) tmp=mid(email,i,1) if tmp="@" then tctr=tctr+1 next if tctr <> 1 then ctr=1 messg=" Email format is incorrect.
|
|
|
To open the Order form, you will require Adobe Reader installed on your computer. To download Adobe Reader click here You may download the Order Form from here: |
[Machines] [Order Form] [Opportunities] [Contact Us] [Feedback] [FAQ's]