Help in adding values in database

Discussion in 'PHP' started by beven, Oct 22, 2011.

  1. #1
    hi,
    I am new in php. I successfully created a form to add records in database with submit button. But i have problem that when i refresh page then a empty record is also inserted as well. How can i overcome this problem


    any effort will be appreciated
     
    beven, Oct 22, 2011 IP
  2. malinda

    malinda Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    post your code here..
     
    malinda, Oct 22, 2011 IP
  3. webshore88

    webshore88 Well-Known Member

    Messages:
    131
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    123
    #3
    If you don't mind you can share you code here with us or give a little brief of detail of your project.
     
    webshore88, Oct 22, 2011 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    You probably have an insert statement executing without needing the form submission.
     
    Rukbat, Oct 24, 2011 IP