Jason just a quick update..first thanks for the help the other night greatly appriciated...after you helped me I investigated why the original code I had worked on a previous website and not this current one....what I found was it was the function preg_replace that was making the code in the previous website working...hence why the following code was working inside the actual file upload behaviour using the fieldname of the file rather then [FileName]
<?php echo strtolower(str_replace(" ", "-", (((isset($_FILES["fileField"])))? preg_replace('/.[^.]*$/', '', $_FILES["fileField"]["name"]) :""))); ?>
Because the above code uses preg_replace what it was doing was manipulating the file extension (correcting it in my database) In other words it as a silly method I was using as the above code was basically ruining the filename but then correcting it by using the preg_replace....thats why when you helped me you had changed your code to not use preg_replace since it was removing the file extension :)
Chris