clarkin, If Request.TotalBytes > 0 Then
works great. the form tag is as follows
<form name="form1" method="post" action="<%= Request.ServerVariables("SCRIPT_NAME") %>">
thanks jonathan, but this time all the coding is on one page.
thanks for all...
lebisol, I tried that and it didn't work. I found a way to make it work:
<%
If Request.form("LName") <> "" Then
Response.redirect("s_done.htm")
End If
%>
but I still would like to know how to use the submit button onclick approach.
Basically I have a form that I use to submit data to a database. this works fine. My problem is when I try to redirect the user to a your request has been submitted page. I tried setting a var to do this:
<%
sent = 0
code
sent = 1
if sent = 1 then
response.redirect("page")
%>
but...
Got it working. To make it work i had to move the if statement before checking for isnumeric.
Sub Check_Phone(fvalue,dname)
If len(Trim(fvalue))=0 Then
ErrCount=ErrCount+1
AddErr(Cstr(ErrCount) + ". "+ dname+ " cannot be empty")
else
If instr(fvalue...
I changed instr to convert fvalue to a string, no go.
If instr(CStr(fvalue, "-")) <> 0 then
ErrCount=Errcount+1
AddErr(CStr(ErrCount) + ". " + dname + "phone number doesn't need to hyphenated")
End If
I changed instr to:
If instr(fvalue...
I have this sub routine that validates a phone number. Everything works(i think) until i get to the instr. The purpose of the instr is to flag an error if the user puts a "-" in the string. Now I have two questions. One if I am checking to see if it isnumeric, shouldn't the...
Thanks Dreamboat. I would consider it an OS problem if it happened with all applications, at all times. This seems to affect Word and with some docs it happens all the time and others it happens some of the time.
Weird[sadeyes]
Hey,
I have a win XP machine that acts as the server sharing the files. I have a win 2000 machine (office 2000) that accesses the shared files. PowerPoint and Excel seem to be able to open the shared files with no problems, but when I try to access the shared files with word I receive system...
when i input a value(1234) it doesn't appear to work. the strange part is, when i return to the input page there is an error that the phone no. doesn't appear to be a valid number. my script is suppose to maintain the values and let the user resubmit. but it submitted, so the fields were...
Hello,
the following validation is giving me problems when it checks for the number of numbers entered in the phone field. The script checks first to see if the field is not empty, then checks to make sure its numeric. both seem to work fine. the next if statement checks to make that there is...
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.