Jump to content

Saving form input to folder


anaid54

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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <div>
    <label for="name3">Name: </label>
    <input type="text" name="name" id="name3" />
  </div>
    <div>
      <label for="phone">Phone Number</label>
      <input type="text" name="phone" id="phone" />
  </div>
      <div>
        <label for="ticket">Ticket Number</label>
        <input type="text" name="ticket" id="ticket" />
  </div>
        <div>
          <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>
          </select>
  </div>
  <div>
<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>
            </select>
            </div>
    <div><input type="file" name="upload" id="upload" />
  </div>
  <div>
    <label for="summary">Summary:</label>
    <textarea name="summary" id="summary" cols="45" rows="5"></textarea>
  </div>
  <div>
    <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" />
  </div>
</form>
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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