RE: [SMARTY] Rows and radio buttons[SOLVED]

From: Date: Fri, 28 Jan 2005 13:12:15 +0000
Subject: RE: [SMARTY] Rows and radio buttons[SOLVED]
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12205@lists.php.net to get a copy of this message
Hi, I managed to solve this by giving all the radio buttons the same name ('contact_use') and returning the value as contact_id."_x" (x representing a value for the type of contact). Cheers George > -----Original Message----- > From: George Pitcher [mailto:george.pitcher@ingenta.com] > Sent: 28 January 2005 12:24 pm > To: Smarty-General > Subject: [SMARTY] Rows and radio buttons > > > Hi, > > Part of my system (under development) needs the user to update a publisher > record with contact information. The contact falls into three categories > (Publisher, Rights and Mandate - they mean something to us) and may or may > not be part of the publisher's organisation. I have a pop-up search window > which will return a list of contacts. > > The layout looks something like: > > |ooo|12345|Sage UK Ltd|John Smith| > |ooo|22345|Sage US Inc|Fred Smith| > |ooo|42345|FRights Ltd|John Brown| > > > The user can select a single radio button from a choice of 3. I want to be > able to capture the selection, whilst enforcing the restriction, > but I'm not > sure if this is possible. > > Once the user has made their selection, the pop-up disappears and the > appropriate contact details are updated for the publisher record. > > I can get the radio buttons to work on a row by row basis using > <input type="radio" name="I{$results[nr].rownumber}" etc so that I cat > detect which radio button has been selected, but I don't know how > to prevent > a second button from a different row being selected also. > > Any ideas? > > MTIA > > George in Oxford > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#12205) next »