| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jan 2005
Posts: 97
![]() | |
| |
| | #2 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,552
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | You should use ASP (server-side) for validation purposes. Some basic validation in javascript is also a plus (quicker and it prevents round trips between browser and server). But it may be disabled on the client browser. Never ever rely on client-based validation ! Also you can program your form to call itself so that if errors are reported, it can remember the input on the previous screen so it need not be type in again.
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Jan 2005
Posts: 97
![]() | I see your point, so ASP validation it is (I was leaning towards this anyway). May seem silly but how do I get it to call itself and retain it's values?
__________________ AEInbetween |
| |
| | #4 (permalink) | ||||
| NamePros Member Join Date: Oct 2005
Posts: 193
![]() ![]() |
????: NamePros.com http://www.namepros.com/programming/180730-asp-form-validation.html sorta like <% response.write("<input type=hidden name=UID value=" & request.form("UID") & ">") %> Thats quick and cheesy. Someone could easily fake their header and pass you an unexpected/unwanted value. I prefer to vet the form values in the head and assign them to variables that you use to load the form... <% dim ok_value ' checks the value is a number. ' you'd probably want real bounds checking here.. if (isnumeric(request.form("UID"))) then ok_value=request.form("UID") end if . . . response.write("<input type=hidden name=UID value=" & ok_value & ">") %> Late at night and I'm pretty tired. apologies for any syntax errors | ||||
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Member Join Date: Jan 2005
Posts: 97
![]() | Thanks! I'll try it out later. Muchas Gracias!
__________________ AEInbetween |
| |