55 users online (1 members and 54 guests)  

Thread: form help


  Results 1 to 1 of 1

Related

  1. Replies: 1
  2. Replies: 4
  3. Replies: 1
  4. Form Handling Script for 'Tell A Friend' Form    Forum: Javascript Forum
    Replies: 1
  5. Replies: 3
  1. #1
    bugaloo's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2008
    Posts
    2

    form help

    Hi, not to clued up to building web pages but have just started learning and have got a bit stuck. i am doing the company intranet and trying to put together a form that will allow people to fill in rota requests ans submit them to a folder on the server. I have attached how far i have got but nothings happening !!
    script
    Code:
    <?
    $comment = $_POST['comment'];
    $path = "H:\";
    $filename = "comment";
    while (file_exists($path.$filename)) 
    {
    $fnum++;
    $filename = "comment".$fnum;
    }
    $handle = fopen($path.$filename, "w");
    fwrite($handle,$comment);
    fclose($handle);
    ?>
    and my html form
    form method="post" action="H:\under construction\req.cgi">

    Code:
    <font size="5">
    <h1 align="center">Rota request form</h1>
    <p align="center">add any text here ! </p>
     
    
    your name <input type="text" 
                                        id="fullname" size"25" />
    Specific requests <input type="text"
                                        id="specific" size="125" />
    
    </pre></p>
     
    <p>check the boxes that apply:<br />
    <input type="checkbox" id="selected" unchecked="unchecked" />
    Saturday 8-4 <br />
    <input type="checkbox" id="selected1" unchecked="unchecked" />
    Saturday 11-7 <br />
    <input type="checkbox" id="selected2" unchecked="unchecked" />
    Saturday 2-10 <br />
    <input type="checkbox" id="selected3" unchecked="unchecked" />
    Saturday day off <br />
    <input type="checkbox" id="selected4" unchecked="unchecked" />
    Sunday 8-4 <br />
    <input type="checkbox" id="selected5" unchecked="unchecked" />
    Sunday 11-7 <br />
    <input type="checkbox" id="selected6" unchecked="unchecked" />
    Sunday 2-10 <br /><input type="submit" value="click here to submit" />
    <input type="reset" value=Erase and start over" /></p>
    
    </form>
    Any ideas would be great, thanks very much
    Last edited by vinyl-junkie; 04-20-2008 at 10:31 AM. Reason: Added code tags



Tags for this Thread