I really need help on this. Can someone help with SQL that will update the database using dyanimic radio button. See my script below:
<cfquery name="qItem" datasource="req"> SELECT id, Item, ItemQty, name, FROM REQUISITION ITEMSTATUS='P' </cfquery> something like this for the form <form> <cfoutput query="qItem"> #currentrow# #id# #Name# #Item# #ItemQty# <input type="radio" name="radio_#currentrow#" value="approve" id="approve" /> <input type="radio" name="radio_#currentrow#" value="decline" id="decline" /> </cfoutput> <input type="submit" name="approveBtn" id="button" value="Click to Approve" /> </form>
So I need SQL that will update the database based on the radio buttion chosen for the records.
Thanks
Edit: Please use the code button when posting blocks of CF code
This post has been edited by Craig328: 29 November 2010 - 03:25 PM

New Topic/Question
Reply




MultiQuote




|