Scripts Posted May 6, 2007 Share Posted May 6, 2007 On many upload pages, the FORM action is set to the same page-that means the script to generate the page and save the uploaded files is same.Can somebody give me some simple example of how to do this ? How to detect if somebody is accessing a page( == generate the form) or uploading the files ( == upload the files) ? Quote Link to comment https://forums.phpfreaks.com/topic/50272-solved-upload-form-and-upload-script-on-same-page/ Share on other sites More sharing options...
Scripts Posted May 6, 2007 Author Share Posted May 6, 2007 Question: How to detect if somebody is accessing a page or uploading the files ? Quote Link to comment https://forums.phpfreaks.com/topic/50272-solved-upload-form-and-upload-script-on-same-page/#findComment-246755 Share on other sites More sharing options...
MadTechie Posted May 6, 2007 Share Posted May 6, 2007 erm.. what! your need to access the page to upload a file! i guess a if( isset($_POST['formelement']) ) would work Quote Link to comment https://forums.phpfreaks.com/topic/50272-solved-upload-form-and-upload-script-on-same-page/#findComment-246758 Share on other sites More sharing options...
Scripts Posted May 6, 2007 Author Share Posted May 6, 2007 wow. that was quick. I will try your suggestion. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/50272-solved-upload-form-and-upload-script-on-same-page/#findComment-246764 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.