Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Hiow do prevent form from sending blank fields?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rmmarsh
Super User

USA
396 Posts

Posted - 30 Mar 2010 :  20:47:32  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
I have a form with about 50 check boxes (it's a survey)... how do I prevent the .php submit from sending check boxes that are not checked? And empty text boxes?

s.dav
Site Admin

Italy
3364 Posts

Posted - 31 Mar 2010 :  09:56:18  Show Profile  Visit s.dav's Homepage  Reply with Quote
You simply cannot; this is the standard HTML form post action.
You can make a trick using javascript but IMO it is a bit complex and useless.

Regards, Davide
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 31 Mar 2010 :  10:37:15  Show Profile  Visit petran's Homepage  Reply with Quote
You can do so by using a PHP script such as Natemail or Processform. Empty fields can be excluded of sending.
Just take a look here: http://www.mindpalette.com/scripts/index.php#NMAnchor

--------

regards

Petran
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 31 Mar 2010 :  18:06:09  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
Thanks Petran... I'll use Natemail...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000