Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic fields not passing Help!

Status
Not open for further replies.

clflyer

Programmer
Nov 26, 2002
6
0
0
US
I'm using FrontPage 2000 and am having a problem passing dynamic text fields to an email. I can add rows to my table, add new text fields to it, but when I submit it, the only fields that get submitted are the ones hardcoded in the body. Am I missing something? Has anyone else been able to do this with FrontPage?
Here is a link to a simple test page:

Here is the code:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Sample table</title>
<script>
function addRowToTable()
{
var tbl = document.getElementById('tblSample');
var lastRow = tbl.rows.length;
var iteration = lastRow;
var row = tbl.insertRow(lastRow);

num = iteration -1

var cell = row.insertCell(0);
var field = document.createElement('input');
field.setAttribute('type','text');
field.setAttribute('name',"txtQty"+num);
field.setAttribute('value',num);
field.setAttribute('size',3);
cell.appendChild(field);
}
</script>
<meta name="Microsoft Theme" content="blends 000, default">
<meta name="Microsoft Border" content="tlb, default">
</head>

<body>
<form method="POST" name="Order Form" action="--WEBBOT-SELF--" onSubmit="">
<!--webbot bot="SaveResults" startspan U-File="_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" S-Email-Address="clflyer@mchsi.com"
S-Email-Format="TEXT/PRE" --><strong>[FrontPage Save Results Component]</strong><!--webbot
bot="SaveResults" endspan -->
<!-- <form action="tableaddrow_nw.html" method="get">-->

<table border="1" id="tblSample" width="292">
<tr>
<th width="282" align="left">Your Order</th>
</tr>
<tr>
<th width="282" align="left" valign="bottom">Qty.</th>
</tr>
<tr>
<td width="282" align="left" valign="bottom">
<input type="text" name="txtQty1" size="3" value = "1" readonly></td>
</tr>
</table>
<input type="button" value="Add" onclick="addRowToTable();" />
<input type="submit" value="Submit" name="B1">
</form>
&nbsp;
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top