made adjustments but not sure why you would want this
<script type="text/javascript"><!--
function getObjRef(id) {
if(document.getElementById) { return document.getElementById(id); }
if(document.all) { return document.all[id]; }
}
function display1() { //selected is the radio input option...
when using the file field it messes with the binaryread of the code so all your request.whatever no longer work, you need to use an upload class which have the fix for your problem;
solution
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=7361&lngWId=4
but your trying to select from the db even though its blank
if Request.form("fname")="" then
set rs=Server.CreateObject("ADODB.Recordset")
rs.open "SELECT * FROM customers WHERE fname='" & fnUpdStr & "' AND lname='" & lnUpdStr & "' AND address1='" & ad1UpdStr & "'",conn
but at glance I can see that your doing a "if first name field is blank select from customers where fname is equal to first name (blank, will not work), i think you use was suppose to use
...
if Request.form("fname")<>"" then
...
use this for your error handle
if err<>0 then
err = err & Err.Number & " / " & Err.Description & "<br>"
response.write err
else
response.write("Record " & cid & " was updated!")
end if
here are soem good references:
exactly what you need
http://particletree.com/features/degradable-ajax-form-validation/
an example: (place in an invalid email address)
http://www.nick-dunn.co.uk/files/ajax-form-validation/
some reference to using the prototype lib (my preference)...
this sounds to me like you need some ajax to do some real-time validation,I would start there.
If not I would have 1 submit at the bottom that just checks all the fields at the end.
try this for your 500-100.asp
<%@ language="VBScript" %>
<%
Option Explicit
Const lngMaxFormBytes = 200
Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP
Dim strMethod, lngPos, datNow, strQueryString, strURL
If Response.Buffer Then
Response.Clear...
why dont you set a server-side session that gets set when you first loadd the page.
Then this session will just set the js variable everytime you postback
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.