Jump to content

Changing Form To Auto


googlexx

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.