Forums
This topic is locked
Form validation
Posted 15 Mar 2001 17:35:43
1
has voted
15 Mar 2001 17:35:43 Michael Guntenaar posted:
Hi there , gotta question (again <img src=icon_smile_8ball.gif border=0 align=middle>I have my text field limited up to 70 chars but when somebody paste a bigger string in it (perhaps 150 chars) the text field just swallows it and tries to insert into my dbase , after that I get an error that the page could not insert because the data would be truncated.
Is there a way to validate from the server side or an advanced java script validator that checks for the amount of chars before submitting.
Thnx <img src=icon_smile_approve.gif border=0 align=middle>
Michael<font face='Verdana'></font id='Verdana'>
Replies
Replied 18 Mar 2001 15:15:09
18 Mar 2001 15:15:09 Michael Moore replied:
[hi
will this work for you?
varLength = len(formvariable)
if varLength >70 then
now do validation request to customer
if you need more form validation code let me know. i will send you a sample of a sophisticated one that handles most types of validation rules.
have a good day, michael moore]
Hi there , gotta question (again <img src=icon_smile_8ball.gif border=0 align=middle>
I have my text field limited up to 70 chars but when somebody paste a bigger string in it (perhaps 150 chars) the text field just swallows it and tries to insert into my dbase , after that I get an error that the page could not insert because the data would be truncated.
Is there a way to validate from the server side or an advanced java script validator that checks for the amount of chars before submitting.
Thnx <img src=icon_smile_approve.gif border=0 align=middle>
Michael<font face='Verdana'></font id='Verdana'>
will this work for you?
varLength = len(formvariable)
if varLength >70 then
now do validation request to customer
if you need more form validation code let me know. i will send you a sample of a sophisticated one that handles most types of validation rules.
have a good day, michael moore]
Hi there , gotta question (again <img src=icon_smile_8ball.gif border=0 align=middle>
I have my text field limited up to 70 chars but when somebody paste a bigger string in it (perhaps 150 chars) the text field just swallows it and tries to insert into my dbase , after that I get an error that the page could not insert because the data would be truncated.
Is there a way to validate from the server side or an advanced java script validator that checks for the amount of chars before submitting.
Thnx <img src=icon_smile_approve.gif border=0 align=middle>
Michael<font face='Verdana'></font id='Verdana'>
Replied 27 Sep 2001 18:23:07
27 Sep 2001 18:23:07 carolus Holman replied:
I too have some from Validation question in regards to drop down menus, check boxes, and radio buttons. Does anyone have an extension that will check for the True/False of one of these elements being checked, or chosen? The built in Extension in UD only checks for Text Fields....
Carolus Holman
Carolus Holman