Jump to content

Saving form input to folder


Recommended Posts

hello phpfreaks! first off i have zero knowledge of php. it's just that i need this in my project. what i would want to do is all the values input in the form "tracker.html" when the SUBMIT button is clicked will be saved in my desktop folder named "LOGS". the saved values will be save as an html file name "logs.html" then it can be viewed also by clicking on the PREVIEW button in the tracker. and also if can be done, each will be save separately according to it's CATEGORY.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<form id="form1" name="form1" method="post" action="">
    <label for="name3">Name: </label>
    <input type="text" name="name" id="name3" />
      <label for="phone">Phone Number</label>
      <input type="text" name="phone" id="phone" />
        <label for="ticket">Ticket Number</label>
        <input type="text" name="ticket" id="ticket" />
          <label for="issue">Issue:</label>
          <select name="issue" id="issue">
            <option value="no sync">no sync</option>
            <option value="no route">no route</option>
            <option value="resched">resched</option>
            <option value="cancel">cancel</option>
<label for="category">Category:</label>
            <select name="category" id="category">
              <option value="level 1">level 1</option>
              <option value="level 2">level 2</option>
              <option value="level 3">level 3</option>
    <div><input type="file" name="upload" id="upload" />
    <label for="summary">Summary:</label>
    <textarea name="summary" id="summary" cols="45" rows="5"></textarea>
    <input type="submit" name="submit" id="submit" value="Submit" />
    <input type="submit" name="preview" id="preview" value="Review" />
    <input type="submit" name="clear" id="clear" value="Clear" />

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.