Re: [WebDNA] Require no empty field

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105849
interpreted = N
texte = HI Li, let's keep this on list, so other new people that are where you are might also be able to learn from this thread. OK, I see from your page that you are submitting to another page, this one: subthanks.tpl ..which (if you intend to keep it that way) means that you will have to do your error checking on that page.. and then decide what action to take from there. If the user inputs everything OK, then you can send the admin email on that subthanks.tpl page, but the more difficult question is what to do in case the user neglected some data? Then you want to show them the form again right? Well you could just use [redirect] to get back to ContactForm.tpl, but then you have lost all the data the user input (and some of it was probably OK) and the user will have to start all over. You could pass all the user's data in the redirect URL, but you have to be sure to do that correctly, and also it is not ideal because it might be alot if they have alot of comments, and some browsers have limits to how many characters can be in an URL. Did you use the code I gave you last post to make a page and play with it on your server? Do you understand anything about how it works? You can use it as a starting place to make your own solution.. but you have to learn. Make the time and actually use it, and keep asking until you understand what each line does. I showed you how to check if any fields are empty. You just have to change the names that I used in the example to match your real fields ('name' & 'email'). If you check the user's input on the receiving page, then what do you want to do if the user ommitted some data? Here you are asking how to write a soution in webdna, so I assume you do not simply want a pre-packaged solution written by someone else. (?) In this webdna langue there are just a few (not many) pre-packaged solutions. Mostly everyone here is wiritng things creatively as they need them. It will be nice to get some finished free open source libraries/modules/packages.. but meanwhile, I think if you want someone to do your work for you here, they will probably require some payment. In that case just ask if anyone is for hire. But if you want to learn, then keep asking.. show where you do not understand.. even if you are on the very beginning. People here are really nice and helpful! -Govinda On Sep 29, 2010, at 5:18 PM, Li Yang wrote: > Govinda, thanks you very much, yes, i am new for this, and i just > want to make sure that the email and name field not empty... > > http://www.fitinfotech.com/ContactForm.tpl ------------ Govinda govinda.webdnatalk@gmail.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Require no empty field (Marc Thompson 2010)
  2. Re: [WebDNA] Require no empty field (Govinda 2010)
  3. Re: [WebDNA] Require no empty field (Govinda 2010)
  4. Re: [WebDNA] Require no empty field (sal danna 2010)
  5. Re: [WebDNA] Require no empty field ("Li Yang" 2010)
  6. Re: [WebDNA] Require no empty field (Lawrence 2010)
  7. [WebDNA] Require no empty field ("Li Yang" 2010)
HI Li, let's keep this on list, so other new people that are where you are might also be able to learn from this thread. OK, I see from your page that you are submitting to another page, this one: subthanks.tpl ..which (if you intend to keep it that way) means that you will have to do your error checking on that page.. and then decide what action to take from there. If the user inputs everything OK, then you can send the admin email on that subthanks.tpl page, but the more difficult question is what to do in case the user neglected some data? Then you want to show them the form again right? Well you could just use [redirect] to get back to ContactForm.tpl, but then you have lost all the data the user input (and some of it was probably OK) and the user will have to start all over. You could pass all the user's data in the redirect URL, but you have to be sure to do that correctly, and also it is not ideal because it might be alot if they have alot of comments, and some browsers have limits to how many characters can be in an URL. Did you use the code I gave you last post to make a page and play with it on your server? Do you understand anything about how it works? You can use it as a starting place to make your own solution.. but you have to learn. Make the time and actually use it, and keep asking until you understand what each line does. I showed you how to check if any fields are empty. You just have to change the names that I used in the example to match your real fields ('name' & 'email'). If you check the user's input on the receiving page, then what do you want to do if the user ommitted some data? Here you are asking how to write a soution in webdna, so I assume you do not simply want a pre-packaged solution written by someone else. (?) In this webdna langue there are just a few (not many) pre-packaged solutions. Mostly everyone here is wiritng things creatively as they need them. It will be nice to get some finished free open source libraries/modules/packages.. but meanwhile, I think if you want someone to do your work for you here, they will probably require some payment. In that case just ask if anyone is for hire. But if you want to learn, then keep asking.. show where you do not understand.. even if you are on the very beginning. People here are really nice and helpful! -Govinda On Sep 29, 2010, at 5:18 PM, Li Yang wrote: > Govinda, thanks you very much, yes, i am new for this, and i just > want to make sure that the email and name field not empty... > > http://www.fitinfotech.com/ContactForm.tpl ------------ Govinda govinda.webdnatalk@gmail.com Govinda

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCatb15 Mac CGI -- [purchase] (1997) Further tests with the infamous shipCost (1997) form data submission gets truncated (1997) [WebDNA] Ubuntu 14.04 & WebDNA (2017) Wanted: More Math Functions (or, Can You Solve This?) (1997) Order not created error (1997) Stay on Products page (2003) Looking For WebCatalog Migration Assistance (2003) price carry over (1997) webcat2b12 CGI -- Date comparisons (1997) Running on Empty (1999) Some ThankYou page problems (1997) Search in 2 or more catalogs (1997) ODBC problems between webcat and filemaker pro (2001) Trouble with Netscape (1998) WebCatalog can't find database (1997) [WebDNA] macOS 10.13.3 and WebDNA Mac Server 8.5.1 - hick-up (2019) [lookup] vs. [search] (1998) Search for dates greater than [date] (1997) Multiple Ad databases? (1997)