Small probs. for data Insert
I have a form (addEmp.asp) that collect EmpData From User, ok
then this form i submitted at validateFrm.asp for validation of form's fields(Means server side validation).
if any field Entry is empty Or Invalid, then this validatefrm.asp redirect the origimnal addEmp.asp form.
Now My Probs is "How can i redisplay field's input back into the addEmp.asp?"
Plz help Me as soon as possible,
i hope U can.
One way is to use the QueryString collection. You can collect the data on the validatefrm.asp page and send that data back to the addEmp.asp page.
You will have to edit addEmp.asp slightly so it can display the values.
In validateemp.asp, if a field is empty, just generate the correct URL to be directed to.
' This is an example only. You will need to do something like this:
<input type="text" name="empName" value="<%= Request.QueryString("empName") %>" />
Note, your form names will be different to the ones I used for this example.
strURL = "addEmp.asp?empName=" & Request.Form("empName") & "&empAddress=" & Request.Form("empAddress")
Do you understand what I mean?
Plz tell me
I Real Understand your suggetation, But Big probs. is that is have a lot's of input fields(Near By 71) in one form,
so plz i can't manage that solution,
if u have another option PLz Help,
Thnax in advance,
If there is a validation error. Have that script output to the browser, and it should take thme back to the previous page with all their data still intact.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)