thanks for the regex..
got me where I was going, it works now
though very sloppy
Any chance I can get you to show me how to make this a script so i can call the function instead of doing it all inline?
Select File: <input type="file" name="f_file" style="width:400px;" onchange="
this.form.f_name.value=((this.form.f_file.value.replace(/^.*[\/\\]/g, '')).split('.',1));
this.form.f_ext.value=((this.form.f_file.value.slice(-4)).replace('.',''));
" /><br />
File Name: <input type="text" name="f_name" style="width: 300px;" />.<input type="text" name="f_ext" style="width: 75px;" /><br />
in the second box i go -4 (.jpg) then remove the dot for the instances where it is a 4 letter extension (.jpeg would then only come up with jpeg and not hack off the first letter)