Well I find myself here once again, this time here is my question.
If I post a form to a php page using IE in which order is the form proccessed?
For example my form page contains userTitle, userFirstName and userSurName
When this is recieved by my php page which is proccessed first? I'm assuming it will be userTitle as this is at the top of my form, then next userFirstName, however, I am unsure and even more unsure if this works differently for FF Opera etc.
my idea is to have all posted data placed into an array and sent to a function so that Instead of using formField Names like userTitle I can use just one name for example
myFormElement[] as the userTitle
myFormElement[] as the userFirstName
Code: Select all
function myFunction($theAction, $thePostedData){
if($theAction == 'INSERT'){
//do this
$userTitle = $thePostedData[0];
$userFirstName = $thePostedData[1];
};
if($theAction == 'UPDATE'){
//do this
};
}://end function
//MyPHPPage
Code: Select all
$myPostedData = array();
foreach($_POST as $theKey => $theValue){
$myPostedData[] = $theValue;
};//end foreach
myFunction('INSERT', $myPostedData);
any help on this is greatly appreciated.
Thanks in advance.