I'm trying to set this up so that it does 2 things when someone hits submit.
I want the normal function to happen (whatever upload.php does)
But I also want to add some extra input boxes that will send the entered text to a .txt file at the same time.
For example.. I want to add an input box for someone to enter their e-mail address, and one to enter their nickname as well. But while the input boxes that are already there do what they are supposed to do, I want the e-mail input data and the nickname to be sent to the .txt file.
I don't know if I need to make a separate form for that, or if I can add it all into the same form.. Can anyone help me out with this?
This is the code for the form that I have now, without the new input boxes that I want to add.
Code:
<form enctype="multipart/form-data" action="upload.php" method="post">
Upload a file<br />
<input type="file" name="tfile" /><br />
Associate a password<br />
<input type="password" name="password" /><br />
Referer's name here.<br />
<input type="text" name="referer" size="50" /><br />
<input type="submit" value="Upload" />
</form>