Radio buttons : how to make them link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anafpires
    New Member
    • Aug 2007
    • 1

    Radio buttons : how to make them link

    Could you please tell me what is wrong with this :

    <input type="radio" name="choose" value="A."onCli ck="
    form.action = 'destination http://';">

    it doesn´t work ..
    Thanks !
  • Purple
    Recognized Expert Contributor
    • May 2007
    • 404

    #2
    Hi anafpires and welcome to TSDN PHP forum

    I can see a number of thing which may be wrong with the line you have posted, can you be a little more detailed about the problem, post more of the code, what you expected to happen when the radio button was clicked, what actually happened.

    Regards Purple

    Comment

    • Nert
      New Member
      • Nov 2006
      • 64

      #3
      Originally posted by anafpires
      Could you please tell me what is wrong with this :

      <input type="radio" name="choose" value="A."onCli ck="
      form.action = 'destination http://';">

      it doesn´t work ..
      Thanks !
      Hi anafpires,

      I suggest you specify what exactly you want to happen. Specify a little bit of your problem will help us easily find some solutions for you. (^_^)


      .: Nert :.

      Comment

      • ak1dnar
        Recognized Expert Top Contributor
        • Jan 2007
        • 1584

        #4
        Originally posted by anafpires
        Could you please tell me what is wrong with this :

        <input type="radio" name="choose" value="A."onCli ck="
        form.action = 'destination http://';">

        it doesn´t work ..
        Thanks !
        May be This

        [CODE=html]<form name="form" action="" method="post">
        <input type="radio" name="choose" value="A." onClick="this.f orm.action='htt p://whereever/server.php';thi s.form.submit() " > </form>[/CODE]

        Comment

        • pezholio
          New Member
          • Jun 2007
          • 22

          #5
          I'd avoid anything like that to be honest, the last thing a user would be expecting when they click a radio button is to be taken to a different page.

          Comment

          • ak1dnar
            Recognized Expert Top Contributor
            • Jan 2007
            • 1584

            #6
            Originally posted by pezholio
            I'd avoid anything like that to be honest, the last thing a user would be expecting when they click a radio button is to be taken to a different page.
            Though you put the action="http://url", it won't redirect automatically without the form.submit(). Yeah Its a FORM.

            Comment

            Working...