hi,
I have a script 1 that calls another script 2 when a form is submitted. both scripts belong to the admin side and the second one involves database modification.
how do i make sure that there are no loose ends?
one way is to put a check in script 2 so that it executes only when session variables are set to logged in.
another way is to check for the source that the form data came from....I'm not sure of how to check for it. is it through $_SERVER['HTTP_REFERER'] ?? is this way safe?
anyways, which works better? or should I use them in conjunction? or is there a better way for this?
I have a script 1 that calls another script 2 when a form is submitted. both scripts belong to the admin side and the second one involves database modification.
how do i make sure that there are no loose ends?
one way is to put a check in script 2 so that it executes only when session variables are set to logged in.
another way is to check for the source that the form data came from....I'm not sure of how to check for it. is it through $_SERVER['HTTP_REFERER'] ?? is this way safe?
anyways, which works better? or should I use them in conjunction? or is there a better way for this?
Comment