Hi Folks, I'm building an multi-part form, at the end of which, if someone has filled out all the required stuff, they can download an XML file generated from what they've filled in. I don't want to let them download the XML file until everything is complete, so right now I'm doing the following. But, it seems like there should be a better way, and I'm too tired today to think of it. Thoughts? (CF 5.0)
<!---Make sure everything required has been filled in.---> <cfif structkeyexists(request.datastruct, "assetid") AND request.datastruct.assetid is not "" AND structkeyexists(request.datastruct, "title") AND request.datastruct.title is not "" AND structkeyexists(request.datastruct, "description") AND request.datastruct.description is not "" AND structkeyexists(request.datastruct, "version") AND request.datastruct.version is not "" AND structkeyexists(request.datastruct, "statusid") AND request.datastruct.statusid is not "" AND structkeyexists(request.datastruct, "keywords") AND request.datastruct.keywords is not "" AND structkeyexists(request.datastruct, "formatid") AND request.datastruct.formatid is not "" AND structkeyexists(request.datastruct, "location") AND request.datastruct.locationid is not ""> <!---Everything Required is Done---> <p><a href="writefile.cfm">Download Your XML File.</a></p> </cfif> Deanna Schneider Interactive Media Developer [EMAIL PROTECTED] ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

