Rows and radio buttons

From: Date: Fri, 28 Jan 2005 12:23:44 +0000
Subject: Rows and radio buttons
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12204@lists.php.net to get a copy of this message
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

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