How to detect if the page is a reload or not?

I have a form in the cfm page if the user submits the form, I don't want to go to another page. I want to reload the page and I'll capture all values and send the data in this way. However, I need to hide the form once the user submits the form. So, how I detect if the page is a reload (after is submitted) or it's the first time it is been charged?

You can manage only two ways.  One, add a hidden field to the form that passes a value, then check if the value exists in the URL/FORM variables (if it exists, the page is reloaded by sending the form - if it does exist, it's the first load of the page).

Perhaps a better approach would be to manage the form via an AJAX request is sent, and then hide the form if the AJAX request is successful.  This all is possible using JavaScript.  The advantage is that the user leaves the page never actually or it recharges.

Tags: ColdFusion

Similar Questions

Maybe you are looking for

  • How to fix viruses and security vulnerabilities

    My phone told me that there 13 holes to end security and maybe some virus

  • go back does not work

    By clicking on the back arrow does not take me back to the previous screen, instead the screen remains current.

  • The use of data in the dialog box

    Hello I started using DIAdem Dialog Editor and I wonder how I would use data that has been entered in a dialog box or table cell perform some calculations on it and display the results in another dialog box. I'd also be looking to retrieve data in a

  • update to Windows 7 Home premium 64-bit

    I tried to update, which was automatic.  Noah get the error 80246008, tried their solution about adding to hidden igons.  Did not work.  I tried Fix, he received the error 2203.  Trouble shoot I tried could not fix.  Lost!

  • I want my system to use MBR partitions not GPT. How?

    I have a new laptop Alienware M18x R2 with Windows 8 Pro.  My drive configuration is as follows: 1 x disc 1 TB of OS HARD drive.  Set up as GPT. data disk HARD 1 x 1 TB drive.  set up as GPT. mSATA 1 64GB SSD x used as a getting started disc caching