Re: xhtml project
This couldn't be done by XHTML alone.
You need server-side scripting to process the data being uploaded on the server.
[b:387p1mso]Useful links[/b:387p1mso]:
http://www.tizag.com/phpT/fileupload.php
http://us.php.net/features.file-upload
You can restrict the uploaded file only when they are .jpg/.bmp two ways:
1. Client-side (Look for the extension, if it's not .jpg/.bmp then don't let it submit)
2. Server-side (For PHP, you can get the file type. YOu can write an if statement telling to accept only file with "jpeg/jpg or image/bmp" extensions).
Hope that helps.