469,588 Members | 2,688 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,588 developers. It's quick & easy.

mandatory fields

123 100+
Hi..
there are some radio buttons,which are mandatory in my site.
So how can i find whether they are filled by the user or not ..so that i can respond accordingly.(i.e if all mandatory fields are remaining then , should be a warning display about the same..)

Expand|Select|Wrap|Line Numbers
  1. <input type="radio" name="small" value="N" autocomplete="off"  />
  2. <input type="radio" name="small" value="hidden";value = "required"/>
  3.  
i have used the second one just to mention the field is required..
May 1 '08 #1
1 1246
aktar
105 100+
[PHP]if (empty($_POST['small'])){

//radio is empty

}else{

//not empty
}[/PHP]
May 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by AR123 | last post: by
6 posts views Thread by Dameon99 | last post: by
pradeepjain
1 post views Thread by pradeepjain | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.