SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Non-Member
    Join Date
    Jan 2007
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form radio buttons plus text box

    Hi I am designing a form and one of the questions requires the user to tick either Blue, Red, or Other. If other there is a text box to specify the Other text.

    How should i code this? As I want the results to be sent by email and if they select other I am thinking it should be sent something like:

    Favourite Colour: Other: Green

    need to clear it up in my head coz it got me a bit confused, any help?

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,567
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Have the radio button, and on the side have some text highlighted the certain color you want to show the blue/green or whatever.

    HTH
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  3. #3
    SitePoint Zealot c.t.c.'s Avatar
    Join Date
    Apr 2007
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think the HTML would be as straightforward as you describe: some radio buttons followed by a text input. How the data is displayed in an email would depend on the server side code that's processing the form. You may want to ask on one of the server-side code forums for some more info on that.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •