Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

$_POST / $_FILES

Status
Not open for further replies.

james6848

Technical User
May 10, 2004
23
GB
I can't seem to access the $_POST array using this form, only the $_FILES one. When I do an echo for the $_POST['artist'], for example, I get nothing. Help!

Code:
<form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
	<input type="hidden" name="MAX_FILE_SIZE" value="100000">

	<fieldset><legend>Fill out the form to upload a file:</legend>
	<p><b>File:</b><input type="file" name="upload" /></p>
	<p><b>Artist:</b><textarea name="artist" cols="40" rows="5"></textarea></p>
	<p><b>Description:</b><textarea name="description" cols="40" rows="5"></textarea></p>
	</fieldset>

	<div align="center"><input type="submit" name="submit" value="Submit" /></div>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top