|
womble -> Quick question on submitting forms with ASP (7/23/2006 15:22:43)
|
I have a form that I need to submit the responses to to a text file, but I also need to validate the form input. (it's for a course I'm doing). My VbScript/ASP skills are not great and I know I've not done half of it 'properly' - current strategy is to just get anything that sort of works like it should submitted (yep, Wombly in panic mode). I've done the submitting to the text file, but I'm struggling to work out how to get the validation into the same script. Then I had an idea, I'm thinking that I could do the validation script so that if all the fields validate, then it triggers the second script. Something like: 1st SCRIPT HERE .... If Form_Valid = "false" Then response.redirect "formpage.asp" Else If Form_Valid = "true" Then response.redirect "secondscript.asp" <-- url of second script here which submits the form then redirects to the success page Would something like that work in theory or am I way off here?
|
|
|
|