milan Posted July 27, 2012 Share Posted July 27, 2012 I have made a gender option in my form ,i want to select a rodio button one time i.e if there are two option of male and female and if i activate male than only one radio button get selected at a time....... can any one help me out <input type="radio" name="male"/>:Male <input type="radio" name="female"/>:Female Link to comment Share on other sites More sharing options...
eTianbun Posted July 27, 2012 Share Posted July 27, 2012 <input type="radio" name="gender"> name attr, should be thesame. 1 Link to comment Share on other sites More sharing options...
thescientist Posted July 27, 2012 Share Posted July 27, 2012 and don't forget to add the value attribute (i.e. "male", or "female") Link to comment Share on other sites More sharing options...
milan Posted July 27, 2012 Author Share Posted July 27, 2012 thanks for the helpe it worked.....! Link to comment Share on other sites More sharing options...
milan Posted July 28, 2012 Author Share Posted July 28, 2012 how to upload a file in a forum..... a file can be uploaded with help of html tag....? Link to comment Share on other sites More sharing options...
worrall Posted September 4, 2012 Share Posted September 4, 2012 (edited) I think this will work for you, see the code and check the result. Its really good.<html><body> <form action="upload_file.php" method="post" enctype="multipart/form-data"><label>Filename:</label> //name of the file to be uploaded.<input type="file" name="file" id="file" /><input type="submit" name="submit" value="Submit" /></form> </body></html> Edited September 4, 2012 by worrall Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now