Jump to content

posting data?


garyed

Recommended Posts

This might sound stupid but I was wondering when two are more people are using the site posting the same form at the same time & post data from the form goes to another php page, can that cause the data to get crossed?

Also when using Curl to post data to another php page are the possibilities any different? 

Link to comment
Share on other sites

Each request to the server, whether it's GET or POST (or any of the others), executes a separate instance of the script. So, yes, there could be multiple instances of your script executing at the same time. Depending on how you are managing the data, it is possible for it to "get crossed".

 

If you are writing to flat files, it is entirely possible that data can get lost if your code does not protect against it.

 

If you are writing to a database, you are less likely to loose data. However, if you are inserting/updating multiple tables, you need to make sure you use the proper functions to keep the relationships intact.

 

As to using Curl, it is just another request to the server, the server really doesn't know the difference and does not care.

Link to comment
Share on other sites

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.