numberonejrio
01 Jan 2009, 06:51 PM
EDIT: Somebody else helped me, disregard this thread.
_________________________________________________________________
I have a form set up, but I don't know what I need to put in the external file that defines the form's action.
Once the user fills out all of the required information, and clicks on submit, I want the information to be put in a .txt file with a random file name and upload it to a directory in my website, the text file should look like this..
Name: Example
Song: Example
Band: Example
Album: Example
Type: Tab or Lyrics
Body:
Body of whatever was submitted
This is my form:
<form action="">
Name:
<input type="text" name="nameby" />
<br /><br />
Song:
<input type="text" name="song" />
<br /><br />
Band:
<input type="text" name="band" />
<br /><br />
Album:
<input type="text" name="album" />
<br /> <br />
Type:
<select name="type">
<option value="Lyrics">Lyrics</option>
<option value="Tab">Tab</option>
</select><br /> <br />
Body:<br /><br /><textarea rows="15" cols="60">Tab Or Lyrics Here</textarea>
<br /> <br />
<input type="submit" value="Submit" />
</form>
Any help?
_________________________________________________________________
I have a form set up, but I don't know what I need to put in the external file that defines the form's action.
Once the user fills out all of the required information, and clicks on submit, I want the information to be put in a .txt file with a random file name and upload it to a directory in my website, the text file should look like this..
Name: Example
Song: Example
Band: Example
Album: Example
Type: Tab or Lyrics
Body:
Body of whatever was submitted
This is my form:
<form action="">
Name:
<input type="text" name="nameby" />
<br /><br />
Song:
<input type="text" name="song" />
<br /><br />
Band:
<input type="text" name="band" />
<br /><br />
Album:
<input type="text" name="album" />
<br /> <br />
Type:
<select name="type">
<option value="Lyrics">Lyrics</option>
<option value="Tab">Tab</option>
</select><br /> <br />
Body:<br /><br /><textarea rows="15" cols="60">Tab Or Lyrics Here</textarea>
<br /> <br />
<input type="submit" value="Submit" />
</form>
Any help?