Hello
I am creating a form. for the user to enter information.
What I am trying to do is display the information at the bottom of the form so they can review before the forms is sent. I got it to display the information being entered into the text field to display correctly at the bottom of the form. But I am unable to generate the label for the field. Name Address City etc.... I want the field label to display after the user enters the information. Can anyone help.
<script type="text/javascript">
<!--
function changeIp() {
document.getElementById('a1').innerHTML = document.getElementById('Name').value;
document.getElementById('a2').innerHTML = document.getElementById('Address').value;
document.getElementById('a3').innerHTML = document.getElementById('City').value;
document.getElementById('a4').innerHTML = document.getElementById('State').value;
document.getElementById('a5').innerHTML = document.getElementById('Zip').value;
}
//-->
</script>
<style type="text/css">
<!--
#Quote{
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #FFFFFF;
margin-bottom: 10px;
font-size: 12px;
line-height: 15px;
color: #FF0000;
padding-left: 20px;
font-style: normal;
font-weight: bold;
padding-top: 5px;
.style1 {font-family: "Times New Roman", Times, serif}
.style1 {
font-family: "Times New Roman", Times, serif;
font-size: 14px;
font-weight: bold;
color: #0000FF;
}
-->
</style>
<br>
<form name="form1" method="post" action="">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><p>Name:
<input onChange="changeIp()" type="text" id="Name" name="Name">
</p>
<p>Address:
<input onChange="changeIp()" type="text" id="Address" name="Address">
</p>
<p>City:
<input onChange="changeIp()" type="text" id="City" name="City">
</p>
<p>State:
<input onChange="changeIp()" type="text" id="State" name="State">
</p>
<p>Zip:
<input onChange="changeIp()" type="text" id="Zip" name="Zip">
</p></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Below is the information you will be sending.<br>
Please review the information and make any corrections before sending your information </td>
</tr>
<tr>
<td><p> </p>
</td>
</tr>
</table>
</form>
<table width="595" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="61"><p align="right">Name: </p>
<p align="right">Address:</p>
<p align="right">City:</p>
<p align="right">State:</p>
<p align="right">Zip</p></td>
<td width="534" valign="middle"><table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><p><a name="a1" class="style1"></a> </p>
<p><a name="a2"></a></p>
<p><a name="a3"></a></p>
<p><a name="a4" class="style1"></a></p>
<p><a name="a5"></a></p></td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
<p> </p>
Thanks
I am creating a form. for the user to enter information.
What I am trying to do is display the information at the bottom of the form so they can review before the forms is sent. I got it to display the information being entered into the text field to display correctly at the bottom of the form. But I am unable to generate the label for the field. Name Address City etc.... I want the field label to display after the user enters the information. Can anyone help.
<script type="text/javascript">
<!--
function changeIp() {
document.getElementById('a1').innerHTML = document.getElementById('Name').value;
document.getElementById('a2').innerHTML = document.getElementById('Address').value;
document.getElementById('a3').innerHTML = document.getElementById('City').value;
document.getElementById('a4').innerHTML = document.getElementById('State').value;
document.getElementById('a5').innerHTML = document.getElementById('Zip').value;
}
//-->
</script>
<style type="text/css">
<!--
#Quote{
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #FFFFFF;
margin-bottom: 10px;
font-size: 12px;
line-height: 15px;
color: #FF0000;
padding-left: 20px;
font-style: normal;
font-weight: bold;
padding-top: 5px;
.style1 {font-family: "Times New Roman", Times, serif}
.style1 {
font-family: "Times New Roman", Times, serif;
font-size: 14px;
font-weight: bold;
color: #0000FF;
}
-->
</style>
<br>
<form name="form1" method="post" action="">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><p>Name:
<input onChange="changeIp()" type="text" id="Name" name="Name">
</p>
<p>Address:
<input onChange="changeIp()" type="text" id="Address" name="Address">
</p>
<p>City:
<input onChange="changeIp()" type="text" id="City" name="City">
</p>
<p>State:
<input onChange="changeIp()" type="text" id="State" name="State">
</p>
<p>Zip:
<input onChange="changeIp()" type="text" id="Zip" name="Zip">
</p></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Below is the information you will be sending.<br>
Please review the information and make any corrections before sending your information </td>
</tr>
<tr>
<td><p> </p>
</td>
</tr>
</table>
</form>
<table width="595" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="61"><p align="right">Name: </p>
<p align="right">Address:</p>
<p align="right">City:</p>
<p align="right">State:</p>
<p align="right">Zip</p></td>
<td width="534" valign="middle"><table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><p><a name="a1" class="style1"></a> </p>
<p><a name="a2"></a></p>
<p><a name="a3"></a></p>
<p><a name="a4" class="style1"></a></p>
<p><a name="a5"></a></p></td>
</tr>
</table></td>
</tr>
</table>
<p> </p>
<p> </p>
Thanks