Rewrite your code and remove the goto statements. There's no reason for them, and they are considered very bad form. They should only be used when it is warranted, and if you (not you specifically... anyone) have to ask when that is, you don't need to use them.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.