If you wanna make all that using one page, you can do that by checking if the submit button is exist or not. Take an example: (suppose that the following page is named 'mypage.cfm')
<cfif IsDefined("FormSubmit")>
<cfquery datasource="dsn" name="name">
insert...