Results 1 to 1 of 1

Thread: Form Help

  1. #1
    numberonejrio Guest

    Form Help

    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..


    Code:
    Name: Example
    Song: Example
    Band: Example
    Album: Example
    Type: Tab or Lyrics
    
    Body:
    
    Body of whatever was submitted
    This is my form:

    Code:
    <form action="">
    
    Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="nameby" />
    <br /><br />
    Song:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="song" />
    <br /><br />
    Band:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="band" />
    <br /><br />
    Album:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="text" name="album" />
    <br /> <br />
    Type:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <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?
    Last edited by numberonejrio; 04 Jan 2009 at 03:07 PM.

Similar Threads

  1. passing information from 1 form to another
    By amanxman in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 11 Apr 2006, 03:44 AM
  2. Insert a form within a form
    By stevenbhn in forum General Questions
    Replies: 1
    Last Post: 10 Feb 2006, 05:16 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •