SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Feb 2006
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help me with submitting form once

    Help with forms
    I would like a user to submit a form once and if he/she wants to submit the same form with same information it should
    tell the user that can not submit twice.

    The form and action page are both in php. Data is being submitted to mysql database.

    Please help.

  2. #2
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use header function and you will be OK!

  3. #3
    SitePoint Addict amitjoshi's Avatar
    Join Date
    Jul 2005
    Location
    Oklahoma, USA
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can try checking the database for similar records before inserting the data. IF the such records exist then simple redirect the user to the the form and tell him to enter new sets of information.

    This can also solve the problem of user refreshing the page where actual database entry takes place.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •