I have a sign up form in RS Forms Pro in Joomla for a card membership. If the user selects the card not to be printed I want to go to mysql database grab a number from a table called all(which contains card numbers for non printed users) delete that row and then pass it on to a hidden field value to be passed into the database user. Now if the user selects he wants his card printed then he will have the option to select where he would like the card collected form and depending on what he selects it will go to the specific table in the database get the card number delete that row and pass it into the hidden field value to be inserted into the database.