Jump to content

Preventing resubmission?


Michdd

Recommended Posts

You could put in a line at the top that checks to see if the file exists on the server. Then if it does exist don't run the rest of the script.

 

But that might prevent over writing of the file which you might not like.

 

Also add in lines after the upload part of the script that clean out the variables holding the upload info.

 

And then a check at the beginning perhaps.

You could put in a line at the top that checks to see if the file exists on the server. Then if it does exist don't run the rest of the script.

 

But that might prevent over writing of the file which you might not like.

 

Also add in lines after the upload part of the script that clean out the variables holding the upload info.

 

And then a check at the beginning perhaps.

 

I already got the check, but how do I clear the variables?

If you use sessions then the variables will still hold their values.

 

 

Sessions will hold there value till the page is closed. But the variable will not hold its value. But a variable can be declared to hold the sessions value. So the variable isn't actually holding the data but the session itself. So the variable will be gone when gone to a different page but the session will still exist. Till browser is closed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.