Javascript alert show database field - asp

Exculuccexins

New Member
I have a javascript alert which is displaying on form submit if a condition occures, this is fine and I can use the following:\[code\]alert("Name You Must Agree To The Terms and Conditions / You have chosen an invalid saving amount"); \[/code\]This is called in the /head section. I would however like to include a value in the error which is called from a datbase, which is called further in my asp using:strErrorSavingsAmount = rs("ErrorSavingsAmount")Is there a way to dispaly this and/or will it work if the javascript function is in the head and the connection to the database is further down the code?
 
Back
Top