File:<input type="file" name="file" id="file" />
User: <input type="text" name="user" id="user" />
<br />
<input type="submit" name="submit" value="Submit" /> </form>
two.php uploads the file, and will (say) echo the content of the "user" input. The problem is that I don't know how to do that. What is the variable name for the content of the text input?
<?php echo $_POST["user"]; ?>
Once the form is submitted using the post method (as your form is set to do), PHP can retrieve the form data. Check out http://www.w3schools.com/php/php_post.asp for more information... I hope I'm helpful.