I have a form that a user fills out and I want some of that data to be automatically put into a datasheet format.
Here is the html for the data sheet.
[code=html]<div class=”form_background” style=”width:90%;”>
<div class=”form_groove_outer”><div class=”form_groove_inner”>
<table class=”datasheet” cellpadding=”0″ cellspacing=”0″>
<thead>
<th style=”width: 2%;”>#</th>
<th style=”width: 10%;” nowrap=”nowrap”>Status</th>
<th style=”width: 20%;” nowrap=”nowrap”>Requestor</th>
<th style=”width: 22%;” nowrap=”nowrap”>Approver</th>
<th style=”width: 46%;” nowrap=”nowrap”>Approver E-mail</th>
<th style=”width: 22%;” nowrap=”nowrap”>Item Description</th>
<th style=”width: 10%;” nowrap=”nowrap”>Req Date</th>
<th style=”width: 20%;” nowrap=”nowrap”>Need Date</th>
</thead>
<tbody>
<tr id=”set1_row1″ class=”datasheet_row”>
<th>1</th>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
</tr>
<tr id=”set1_row2″ class=”datasheet_row”>
<th>2</th>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
</tr>
<tr id=”set1_row3″ class=”datasheet_row”>
<th>3</th>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
</tr>
<tr id=”set1_row4″ class=”datasheet_row”>
<th>4</th>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
</tr>
<tr id=”set1_row5″ class=”datasheet_row”>
<th>5</th>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
<td><input value=”” type=”text”></td>
</tr>
</tbody></table></div></div></div>
And here is the form html for those values:
[code=html]
<label>*Requestor:</label><input type=”text” name=”name” size=”30″ <br />
<label>*Approver:</label><input type=”text” name=”approver” size=”30″ <br />
<label>*Approver E-mail:</label><input type=”text” name=”appemail” size=”30″ <br />
<p id=”acqtype”style=”margin-left: 13.3em; margin-bottom: 0;”><label>*Acquisition Type:</label><select name=”acqtype”>
<option selected=””>-Select-</option>
<option value=”Hardware”>Hardware</option>
<option value=”Hardware Capital”>Hardware Capital</option>
<option value=”Leases”>Leases</option>
<option value=”Maintenance”>Maintenance</option>
<option value=”Professional Services”>Professional Services</option>
<option value=”Software”>Software</option>
<option value=”Software Capital”>Software Capital</option>
<option value=”Other”>Other</option>
</select></p>
//Req date involves 2 drop downs (month and day) and a text with the year
<label>*Item Description:</label><input type=”text” name=”description” size=”30″ <br />
<label>*Total Cost:</label><input type=”text” name=”totalcost” size=”30″ /><br />
Also is there a way to put a link on the Reqestor name and be able to view the original form filled out?
I am very new at HTML and JavaScript so please try to be detailed.
Thanks in advance.