Jump to content

Recommended Posts

Hey everyone.  I'm having a bit of an issue, but not sure if it is MySQL or PHP.  Basically, if someone has filled out a form before on the webpage, when they click send (for another instance), it is not posting the new information into the database. Once the send button is pushed, it re-sends the previous entry.  I'm thinking there is some cache issue, but I'm not sure what kind of code to use to clear the cache before/after the send button is pushed.  Sorry if this doesn't make much sense, but it's a little hard to explain. Any ideas?  Thanks!

Link to comment
https://forums.phpfreaks.com/topic/242884-mysqlphp-cache-problem/
Share on other sites

Sorry again for the description.  Let me see if this helps:

 

Someone goes to the page for the first time and submits the form, the info is posted into the db and an email is sent to the admin that shows a link to the form info.  The link ends with the user id which should be different with every post.  ie. http://site.com/forms/form.php?id=152

 

If the same user goes back to the site and submits a form it should assign the new form a different id number, but instead edits the data for that user in the db (152), and sends email with the same link as above. 

 

However, if the user hit ctrl f5, or cleared their browser cache it would assign a new id, and everything works fine.

 

Does that help?

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.