Help optimizing form code (checking IDs and radio buttons) |
[eluser]Wayne Smallman[/eluser]
Hi guys! I've had to create a load of messy code to get around problems I'm having with set_radio(). What I'd really appreciate is any advice as to how this code might be tidied up using any pre-build functions to replace my code. The bulk of the problems I'm having revolve around error checking, which all appears to work fine except for the record ID and radio buttons. The following is the code I've used to work out which radio values were checked in the previous form submission: Code: // define default radio button values on the first pass Code: // if there's no URL parameter for the entry ID... Any help would be greatly appreciated!
[eluser]vitoco[/eluser]
Code: // THIS CODE IS SMALLER ======================================================== Saludos
[eluser]Wayne Smallman[/eluser]
Thanks for the feedback. Again, much appreciated. |
Welcome Guest, Not a member yet? Register Sign In |