Don't understand what you mean, at that point I hadn't finished the script so I was waiting for that to work so I could continue.What's it returning?PHP Code:<?php
if (isset($button)) {
$file_name = &$_FILES['file']['name'];
$file_explode = explode('.', $file_name);
$file_ext = strtolower(end($file_explode));
var_dump($file_ext);
echo '<br/>';
var_dump($file_name);
echo '<br/>';
var_dump($file_explode);
}
Nah man thanks for trying anyway![]()
Thanks for helping, I won't bother trying because the problem is solved and it was within the html form.
Want to hide these adverts? Register an account for free!