| | |
Simple problem regardingform elements
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Greetings.
I'm very new to asp and I encountered this little problem.
I have 2 files -> home.html & process.asp
In home.html, there are some input textfields.
In process.asp, I have inserted a textfield also.
I tried to post the form in home.html to process.asp. I managed to get the data with this little line: However, when I tried to insert the value in =Request.Form("yyyy1") into a textfield in process.asp, it says
For your information, service is the textfield's name.
Please help.
I'm very new to asp and I encountered this little problem.
I have 2 files -> home.html & process.asp
In home.html, there are some input textfields.
In process.asp, I have inserted a textfield also.
I tried to post the form in home.html to process.asp. I managed to get the data with this little line:
ASP Syntax (Toggle Plain Text)
<% =Request.Form("yyyy1") %>
•
•
•
•
Error Type:
Microsoft JScript runtime (0x800A1391)
'service' is undefined
/chm/Calculator/process.asp, line 39
Please help.
Err, sorry guys, I think I've figured it out already.
Anyway, 1 more problem here: same scenario, 2 files -> home.html & process.asp
Is it possible for me to do the data validation in home.html after the user presses SUBMIT, any errors must be corrected before submitting the form again to process.asp?
P.s: process.asp is another pop-up window.
Anyway, 1 more problem here: same scenario, 2 files -> home.html & process.asp
Is it possible for me to do the data validation in home.html after the user presses SUBMIT, any errors must be corrected before submitting the form again to process.asp?
P.s: process.asp is another pop-up window.
•
•
•
•
Originally Posted by red_evolve
Err, sorry guys, I think I've figured it out already.
Is it possible for me to do the data validation in home.html after the user presses SUBMIT
•
•
•
•
Originally Posted by red_evolve
any errors must be corrected before submitting the form again to process.asp?
P.s: process.asp is another pop-up window.
•
•
•
•
Originally Posted by red_evolve
ASP Syntax (Toggle Plain Text)
Error Type: Microsoft JScript runtime (0x800A1391) 'service' is undefined /chm/Calculator/process.asp, line 39
Finally, I got a reply. I have done most of my coding, except for validation. I'm stuck! I am using ASP with jscript. The reason I do the client-side validation is because, based on what I have read about client-side validation, it's faster & only the correct data will be sent to the server to do further processing. Correct me if I'm wrong.
Err, I was using the Search feature provided by this forum & searched for
-> "client-side validation" & I got into the .NET Framework/ASP.NET forum. I realised that the problem posted there is similar to mine & so I posted my codes there. Would u mind checking it out over there? I apologize for the inconvenience.
Err, I was using the Search feature provided by this forum & searched for
-> "client-side validation" & I got into the .NET Framework/ASP.NET forum. I realised that the problem posted there is similar to mine & so I posted my codes there. Would u mind checking it out over there? I apologize for the inconvenience.
•
•
Join Date: Jul 2004
Posts: 32
Reputation:
Solved Threads: 1
Actually, client side validation is a nice thing to use, but should NEVER be relied upon.
Consider those that have JavaScript turned off!! How will you validate then?
I always handle validation on the server, as it makes more sense. If you know there is an error in the input, you just load up the form again (and because this is server side, there is no javascript) and can also do clever things like highlighting the problem input element.
Consider those that have JavaScript turned off!! How will you validate then?
I always handle validation on the server, as it makes more sense. If you know there is an error in the input, you just load up the form again (and because this is server side, there is no javascript) and can also do clever things like highlighting the problem input element.
![]() |
Similar Threads
- e.cancel simple problem?? (VB.NET)
- Simple problem (Java)
- Newbie - looping and array [very simple] problem (PHP)
- Help me with this Simple Problem plss (C)
- BUTTON DOES NOT WORK??? simple problem (C)
Other Threads in the ASP Forum
- Previous Thread: ASP how to make the page not remembered in address bar?
- Next Thread: RDS Issue in Internet Explorer
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7






