googlexx Posted May 28, 2009 Share Posted May 28, 2009 Hey guys, this guy gave me this php page where you can upload a file and it does stuff with it. However instead of uploading the file i just want the page to automatically find a file on the webserver and use that one instead of allowing someone to upload their file. This is the form, i know its in html but this is the only thing on the page that is html: i tried replacing it with this but its not working: $replay_file = test.txt <form enctype="multipart/form-data" action="?" method="post"> <fieldset> <input type="hidden" name="MAX_FILE_SIZE" id="MAX_FILE_SIZE" value="1000000" /> <label for="replay_file">File: </label><input name="replay_file" id="replay_file" type="file" /> <label for="gateway">Gateway: </label><select name="gateway" id="gateway"> <option selected="selected">Lordaeron</option> <option>Azeroth</option> <option>Northrend</option> <option>Kalimdor</option> </select> <input type="submit" value="Send" /> </fieldset> </form> Link to comment https://forums.phpfreaks.com/topic/159981-changing-form-to-auto/ Share on other sites More sharing options...
googlexx Posted May 28, 2009 Author Share Posted May 28, 2009 nvm figured it out. u can delete this Link to comment https://forums.phpfreaks.com/topic/159981-changing-form-to-auto/#findComment-843889 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.