anaid54
11-07-2010, 01:38 AM
here is my html code:
<!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>
if someone can help with this. what i would like to do is when i click on SUBMIT button, all the information input in the form will be save in a folder as an html file depending on which category it is. for example it will be save in "C:\Users\owner\Documents\New Folder" so all the level1 category will be save in one html file, level 2 in one html file and level3 in one html file. if there is an uploaded jpeg file it will be displayed inside the html file as well.
pls HELP! (im not sure if the script i need is php or js):(
<!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>
if someone can help with this. what i would like to do is when i click on SUBMIT button, all the information input in the form will be save in a folder as an html file depending on which category it is. for example it will be save in "C:\Users\owner\Documents\New Folder" so all the level1 category will be save in one html file, level 2 in one html file and level3 in one html file. if there is an uploaded jpeg file it will be displayed inside the html file as well.
pls HELP! (im not sure if the script i need is php or js):(