pouncer Posted March 6, 2007 Share Posted March 6, 2007 <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <input name="imageupload" type="file" size="70"> How do I actually check if the user actualled clicked the browse button and selected a file? because, before i hit the submit button i want to check if the user actually select a file to upload Quote Link to comment Share on other sites More sharing options...
jcbarr Posted March 6, 2007 Share Posted March 6, 2007 Do you mean before the form is actually submitted? If you want to do it before the form is submitted then you will more then likely have to use javascript to disable the rest of the form inputs until the above mentioned input has a value. Quote Link to comment Share on other sites More sharing options...
pouncer Posted March 6, 2007 Author Share Posted March 6, 2007 Do you mean before the form is actually submitted? If you want to do it before the form is submitted then you will more then likely have to use javascript to disable the rest of the form inputs until the above mentioned input has a value. hmmm, yea i wanted to check it before i hit the submit. hmm, sounds a bit complex to me. Quote Link to comment Share on other sites More sharing options...
jcbarr Posted March 6, 2007 Share Posted March 6, 2007 Search for javascript form functions or manipulations on google and you will find a ton of sites that can give you a run down of how to do what you want. They aren't that complicated most of the time. Quote Link to comment Share on other sites More sharing options...
pouncer Posted March 6, 2007 Author Share Posted March 6, 2007 isnt there any way to just echo the directory name then, in the file browse box, when i click the submit button? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.