• 14 years ago

    Hi guys I've got a Sad [:(] problem Sad [:(] with php and mysql:


    1. Insert data in the form;

    2. When submit a "visualization-page" is displayed (all ok);

    3. If I click on refresh button the last item is repeated.

    How I can avoid it?


    'Cause if I insert my name and submit, I will refresh and my name is displeyd twice....

    Thank you.

  • 14 years ago

    Its a tad hard without a bit of code... post some code and we'll try and help you:-)

  • 14 years ago

    There's nothing wrong with your code with that kind of problem.. what you will do with that is
    Transfer your MYSQL INSERT code  to another file so that when you refresh your browser it will not insert again the same value..

    Actually, your current will cache/retain the prevouis (POST, GET) value you have entered to your browser.. thats why when you refresh your browser the variables will have the same value, and then insert it again and again... :)

    * Separate the page of your registration form.
    * Processing page where you will do your stuff in mysql...

    That's all, Just tell me if you have any problem....

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” - Antoine de Saint Exupéry