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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I would like the date to populate a field in a form

Status
Not open for further replies.

SOAM

Technical User
May 14, 2002
8
US
I am creating a form in dreamweaver and would like to have the date populate a field. The page will be saved as an asp page. I would label the field date: and would like todays date to display when they go to the form. Can someone assist me with this?

Thank you

Ralph
 

<p>Date: <%=Date()%></p>


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
How would I use this in my code? I would like the text to read DATE: and then show todays date after the quotes.

Thanks

 
If you just stick that line in an asp page it will do just what you want. Did you try it yet?

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Yes thank you and it works. Can you tell me how I would get it so that the date sends with the reset of the information that is in the form?


<%@ LANGUAGE=VBSCRIPT %>
<!--#INCLUDE VIRTUAL="/ASPScripts/emailer2.inc.asp" -->
<%
If Request.Form <> "" Then
sendemail "Ralph.Sierra@nhhn.org", "ralph.sierra@nhhn.org", "Survey", "End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/pagetemplate.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>Environmental Survey</title>
<script>
function getDate() {
var d = new Date();
var month = d.getMonth() + 1;
var day = d.getDate();
var year = d.getFullYear();
var date = month + "/" + day + "/" + year;
document.survey.nomineeDate.value = date;
</script>
<style type="text/css">
<!--
.style1 {color: #003366}
-->
</style>
<style type="text/css">
<!--
.style2 {color: #000000}
-->
</style>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript"><!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
function mmLoadMenus() {
if (window.mm_menu_0217165100_1) return;
window.mm_menu_0217165100_1_1 = new Menu("Discounts&nbsp;and&nbsp;sales",81,13,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#003366","#135f61","left","middle",1,0,500,-5,7,true,false,true,0,true,true);
mm_menu_0217165100_1_1.addMenuItem("Local&nbsp;discounts","location=' mm_menu_0217165100_1_1.addMenuItem("Sales","location=' mm_menu_0217165100_1_1.hideOnMouseOut=true;
mm_menu_0217165100_1_1.menuBorder=0;
mm_menu_0217165100_1_1.menuLiteBgColor='#ffffff';
mm_menu_0217165100_1_1.menuBorderBgColor='#555555';
mm_menu_0217165100_1_1.bgColor='#555555';
window.mm_menu_0217165100_1 = new Menu("root",168,13,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#003366","#135f61","left","middle",1,0,500,-5,7,true,false,true,0,true,true);
mm_menu_0217165100_1.addMenuItem("Calendar","window.open(' '_blank');");
mm_menu_0217165100_1.addMenuItem("Code&nbsp;of&nbsp;conduct","window.open(' '_blank');");
mm_menu_0217165100_1.addMenuItem(mm_menu_0217165100_1_1);
mm_menu_0217165100_1.addMenuItem("Employee&nbsp;of&nbsp;the&nbsp;month&nbsp;nomination","location=' mm_menu_0217165100_1.addMenuItem("Forum&nbsp;schedule","location=' mm_menu_0217165100_1.addMenuItem("Holidays","location=' mm_menu_0217165100_1.addMenuItem("Mission/Vision&nbsp;statement","window.open(' '_blank');");
mm_menu_0217165100_1.addMenuItem("Organizational&nbsp;chart","window.open(' '_blank');");
mm_menu_0217165100_1.addMenuItem("Standards&nbsp;of&nbsp;Performance","location=' mm_menu_0217165100_1.hideOnMouseOut=true;
mm_menu_0217165100_1.childMenuIcon="images/arrows.gif";
mm_menu_0217165100_1.menuBorder=0;
mm_menu_0217165100_1.menuLiteBgColor='#ffffff';
mm_menu_0217165100_1.menuBorderBgColor='#555555';
mm_menu_0217165100_1.bgColor='#555555';
window.mm_menu_0921133034_2 = new Menu("root",133,12,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#003366","#135f61","left","middle",1,0,500,-5,7,true,false,true,0,true,true);
mm_menu_0921133034_2.addMenuItem("Child&nbsp;Care","location=' mm_menu_0921133034_2.addMenuItem("Flexible&nbsp;Spending&nbsp;Account","location=' mm_menu_0921133034_2.addMenuItem("Health&nbsp;Care","location=' mm_menu_0921133034_2.addMenuItem("PDO","location=' mm_menu_0921133034_2.addMenuItem("Pharmacy","location=' mm_menu_0921133034_2.hideOnMouseOut=true;
mm_menu_0921133034_2.menuBorder=0;
mm_menu_0921133034_2.menuLiteBgColor='#ffffff';
mm_menu_0921133034_2.menuBorderBgColor='#555555';
mm_menu_0921133034_2.bgColor='#555555';
window.mm_menu_0921132644_3 = new Menu("root",127,12,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#003366","#135f61","left","middle",1,0,500,-5,7,true,false,true,0,true,true);
mm_menu_0921132644_3.addMenuItem("Prescription&nbsp;refills","location=' mm_menu_0921132644_3.addMenuItem("New&nbsp;prescriptions","location=' mm_menu_0921132644_3.addMenuItem("Prescription&nbsp;transfer","location=' mm_menu_0921132644_3.addMenuItem("OTC&nbsp;products","location=' mm_menu_0921132644_3.addMenuItem("Prescription&nbsp;Asst.&nbsp;Program","location=' mm_menu_0921132644_3.hideOnMouseOut=true;
mm_menu_0921132644_3.menuBorder=0;
mm_menu_0921132644_3.menuLiteBgColor='#ffffff';
mm_menu_0921132644_3.menuBorderBgColor='#555555';
mm_menu_0921132644_3.bgColor='#555555';
window.mm_menu_0217165910_7 = new Menu("root",120,15,"Arial, Helvetica, sans-serif",11,"#ffffff","#ffffff","#003366","#135f61","left","middle",2,0,500,-5,7,true,false,true,0,true,true);
mm_menu_0217165910_7.addMenuItem("Education&nbsp;information","location=' mm_menu_0217165910_7.addMenuItem("Safety&nbsp;Tour&nbsp;information","window.open(' '_blank');");
mm_menu_0217165910_7.hideOnMouseOut=true;
mm_menu_0217165910_7.menuBorder=0;
mm_menu_0217165910_7.menuLiteBgColor='#ffffff';
mm_menu_0217165910_7.menuBorderBgColor='#555555';
mm_menu_0217165910_7.bgColor='#555555';
window.mm_menu_0625150357_8 = new Menu("root",145,14,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#003366","#135f61","left","middle",2,0,500,-5,7,true,false,true,0,true,true);
mm_menu_0625150357_8.addMenuItem("Patient&nbsp;education&nbsp;documents","window.open(' '_blank');");
mm_menu_0625150357_8.addMenuItem("Patient&nbsp;education&nbsp;channel","location=' mm_menu_0625150357_8.hideOnMouseOut=true;
mm_menu_0625150357_8.menuBorder=0;
mm_menu_0625150357_8.menuLiteBgColor='#ffffff';
mm_menu_0625150357_8.menuBorderBgColor='#555555';
mm_menu_0625150357_8.bgColor='#555555';
window.mm_menu_0921132120_9 = new Menu("root",101,14,"Arial, Helvetica, sans-serif",10,"#ffffff","#ffffff","#003366","#135f61","left","middle",2,0,500,0,0,false,false,true,0,true,true);
mm_menu_0921132120_9.addMenuItem("Work&nbsp;orders","window.open(' '_blank');");
mm_menu_0921132120_9.addMenuItem("Campus&nbsp;maps","window.open(' '_blank');");
mm_menu_0921132120_9.addMenuItem("Project&nbsp;updates","window.open(' '_blank');");
mm_menu_0921132120_9.addMenuItem("Project&nbsp;request&nbsp;form","window.open(' '_blank');");
mm_menu_0921132120_9.addMenuItem("Space&nbsp;request&nbsp;form","window.open(' '_blank');");
mm_menu_0921132120_9.hideOnMouseOut=true;
mm_menu_0921132120_9.menuBorder=0;
mm_menu_0921132120_9.menuLiteBgColor='#ffffff';
mm_menu_0921132120_9.menuBorderBgColor='#555555';
mm_menu_0921132120_9.bgColor='#555555';

mm_menu_0921132120_9.writeMenus();
} // mmLoadMenus()

//-->

</script>
<script language="JavaScript1.2" src="../mm_menu.js"></script>
<link href="../css/bodystyles.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../images/searchhov.gif','../images/homehov.gif','../images/nhhnhov.gif','../images/phonehov.gif','../images/emergencyhov.gif','../images/jcahohov.gif','../images/appshov.gif')">
<table width="773" height="538" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="117" height="123"><!-- InstanceBeginEditable name="corner image" --><img src="/images/corner-header.jpg" width="124" height="123"><!-- InstanceEndEditable --></td>
<td width="656"><img src="/images/caplivebanner.jpg" width="650" height="123"></td>
</tr>
<tr>
<td height="26"><a href="/search.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Search','','../images/searchhov.gif',1)"><img src="../images/search.gif" name="Search" width="124" height="26" border="0"></a></td>
<td><a href="/policies.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('NHHN Home','','../images/homehov.gif',1)"><img src="../images/home.gif" name="NHHN Home" width="93" height="26" border="0"></a><a href=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('nhhnorg','','../images/nhhnhov.gif',1)"><img src="../images/nhhn.gif" name="nhhnorg" width="103" height="26" border="0"></a><a href="/telephonedirectory.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Phone Directory','','../images/phonehov.gif',1)"><img src="../images/phone.gif" name="Phone Directory" width="108" height="26" border="0"></a><a href="/emergency.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Emergency','','../images/emergencyhov.gif',1)"><img src="../images/emergency.gif" name="Emergency" width="135" height="26" border="0"></a><a href="/compliance.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Compliance','','../images/jcahohov.gif',1)"><img src="../images/jcaho.gif" name="Compliance" width="108" height="26" border="0"></a><a href="/onlineapps.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Online Apps','','../images/appshov.gif',1)"><img src="../images/apps.gif" name="Online Apps" width="103" height="26" border="0"></a></td>
</tr>
<tr>
<td height="349" valign="top" bgcolor="#003366">
<script language="JavaScript1.2">mmLoadMenus();</script>
<table border="0" cellpadding="0" cellspacing="0" width="123">
<!-- fwtable fwsrc="navbar.png" fwbase="navbar.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="../images/spacer.gif" width="123" height="1" border="0" alt=""></td>
<td><img src="../images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>

<tr>
<td><a href="../index.htm"><img name="navbar_r1_c1" src="../images/navbar_r1_c1.gif" width="123" height="19" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="19" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../department.htm"><img name="navbar_r2_c1" src="../images/navbar_r2_c1.gif" width="123" height="18" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="18" border="0" alt=""></td>
</tr>
<tr>
<td><a href=" target="_blank"><img name="navbar_r3_c1" src="../images/navbar_r3_c1.gif" width="123" height="21" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="21" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../employee_activities.htm" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0217165100_1,123,0,null,'navbar_r4_c1');"><img name="navbar_r4_c1" src="../images/navbar_r4_c1.gif" width="123" height="22" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="22" border="0" alt=""></td>
</tr>
<tr>
<td><a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0921133034_2,123,0,null,'navbar_r5_c1');"><img name="navbar_r5_c1" src="../images/navbar_r5_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../outpatientpharmacy.htm" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0921132644_3,123,0,null,'navbar_r6_c1');"><img name="navbar_r6_c1" src="../images/navbar_r6_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><img name="navbar_r7_c1" src="../images/navbar_r7_c1.gif" width="123" height="2" border="0" alt=""></td>
<td><img src="../images/spacer.gif" width="1" height="2" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../serviceexcellence.htm"><img name="navbar_r8_c1" src="../images/navbar_r8_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../classifieds.htm"><img name="navbar_r9_c1" src="../images/navbar_r9_c1.gif" width="123" height="18" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="18" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../formspage.htm"><img name="navbar_r10_c1" src="../images/navbar_r10_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../specialmentions.htm"><img name="navbar_r11_c1" src="../images/navbar_r11_c1.gif" width="123" height="19" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="19" border="0" alt=""></td>
</tr>
<tr>
<td><a href=" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0217165910_7,123,0,null,'navbar_r12_c1');"><img name="navbar_r12_c1" src="../images/navbar_r12_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><a href=" target="_blank" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0625150357_8,123,0,null,'navbar_r13_c1');"><img name="navbar_r13_c1" src="../images/navbar_r13_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><a href="#" onMouseOut="MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0921132120_9,123,0,null,'navbar_r14_c1');"><img name="navbar_r14_c1" src="../images/navbar_r14_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><a href=" target="_blank"><img name="navbar_r15_c1" src="../images/navbar_r15_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../otherlinks.htm"><img name="navbar_r16_c1" src="../images/navbar_r16_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><a href="../contactus.htm"><img name="navbar_r17_c1" src="../images/navbar_r17_c1.gif" width="123" height="20" border="0" alt=""></a></td>
<td><img src="../images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td><img name="navbar_r18_c1" src="../images/navbar_r18_c1.gif" width="123" height="11" border="0" alt=""></td>
<td><img src="../images/spacer.gif" width="1" height="11" border="0" alt=""></td>
</tr>
</table>
</td>
<td valign="top"><!-- InstanceBeginEditable name="body" -->
<form action="<%=CStr(Request.ServerVariables ("SCRIPT_NAME"))%>" method="post" name="survey" class="style1" id="survey">
<table width="95%" height="156" border="0" bgcolor="#CCCCCC">
<tr>
<td height="82" colspan="3"><p align="center"><span class="style1 style2">New Hanover Health Network<br>
Environmental Services<br>
Program Evaluation</span><br>
<br>
<br>
</p></td>
</tr>
<tr>
<td width="28%" height="24"><div align="left">The area that you work in:

</div></td>
<td width="53%"><input name="area" type="text" id="area"></td>
<td width="19%">&nbsp;</td>
</tr>
<tr>
<td height="20">Date:&nbsp;</td>
<td height="20"><%response.write(date())%></td>
<td height="20">&nbsp;</td>
</tr>
<tr>
<td height="20">&nbsp;</td>
<td height="20">&nbsp;</td>
<td height="20">&nbsp;</td>
</tr>
</table>
<table width="95%" border="0" bgcolor="#CCCCCC">
<tr>
<td width="28%"><div align="center"><span class="style2"><span class="style2"></span></span></div></td>
<td width="9%"><span class="style1 style2 style2">Criteria</span></td>
<td width="25%">&nbsp;</td>
<td width="13%"><span class="style1 style2 style2">Very Poor </span></td>
<td width="7%"><span class="style1 style2 style2">&nbsp;Fair </span></td>
<td width="18%"><span class="style1 style2 style2">&nbsp;&nbsp;Very Good </span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><span class="style1 style2 style2">&nbsp;&nbsp;&nbsp;1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 </span></td>
<td><div align="center" class="style2 style2"><span class="style1 style2">3</span></div></td>
<td><span class="style1 style2 style2">&nbsp;&nbsp;4 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;5 </span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<table width="95%" border="1" cellpadding="1" bgcolor="#CCCCCC">
<tr>
<td width="55%"><div align="center" class="style1 style2">Cleaning Quality </div> <span class="style1 style2"> Comments:</span> <textarea name="cleaning comment" cols="50" id="cleaning comment"></textarea></td>
<td width="38%" align="left" valign="top"><div align="left">
<select name="cleaning grade" id="cleaning grade">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div></td>
</tr>
</table>
<table width="95%" border="1" cellpadding="1" bgcolor="#CCCCCC">
<tr>
<td width="55%" height="114"><div align="center" class="style1 style2">Responsiveness to Needs </div>
Comments:
<textarea name="responsive comment" cols="50" id="responsive comment"></textarea></td>
<td width="38%" align="left" valign="top"><div align="left">
<select name="responsive grade" id="responsive grade">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div></td>
</tr>
</table>
<table width="95%" border="1" cellpadding="1" bgcolor="#CCCCCC">
<tr>
<td width="55%"><div align="center" class="style1 style2">Professionalism of Staff </div>
Comments:
<textarea name="staff comment" cols="50" id="staff comment"></textarea></td>
<td width="38%" align="left" valign="top"><div align="left">
<select name="staff grade" id="staff grade">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div></td>
</tr>
</table>
<table width="95%" border="1" cellpadding="1" bgcolor="#CCCCCC">
<tr>
<td width="55%"><div align="center" class="style1 style2">Professionalism of Coordinators/Management</div>
Comments:
<textarea name="management comment" cols="50" id="management comment"></textarea></td>
<td width="38%" align="left" valign="top"><div align="left">
<select name="coordinator grade" id="coordinator grade">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div></td>
</tr>
</table>
<table width="95%" border="1" cellpadding="1" bgcolor="#CCCCCC">
<tr>
<td width="55%"><div align="center" class="style1 style2">Availability of Supplies (paper/plastic/soap) </div>
Comments:
<textarea name="supplies comment" cols="50" id="supplies comment"></textarea></td>
<td width="38%" align="left" valign="top"><div align="left">
<select name="supplies grade" id="supplies grade">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div></td>
</tr>
</table>
<table width="95%" border="1" cellpadding="1" bgcolor="#CCCCCC">
<tr>
<td height="125" align="left" valign="top"><div align="center" class="style1 style2"><br>
General Comments</div>
<p>
<textarea name="general comment" cols="60" id="general comment"></textarea>
</p>
<div align="left">
<table width="90%" border="0">
<tr>
<td width="25%">&nbsp;</td>
<td width="27%">
<div align="right">
<input type="submit" name="Submit" value="Submit">
</div></td>
<td width="23%">
<div align="left">
<input type="reset" name="Reset" value="Reset Form">
</div></td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</form>
<p class="style1">&nbsp;</p>
<p class="style1">&nbsp;</p>
<p class="style1">&nbsp;</p>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td height="31" bgcolor="#003366">&nbsp;</td>
<td><div align="center"><font color="#003366" size="1">&copy; <font face="Verdana, Arial, Helvetica, sans-serif">2002
New Hanover Health Network</font></font><font size="1"><br>
<font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">2131
South 17th Street Wilmington, North Carolina 28401 910.343.7000</font></font><font size="2"><font color="#003366" face="Verdana, Arial, Helvetica, sans-serif">
<br>
</font></font><em><font color="#003366" size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="../disclaimer.htm">Please
read disclaimer and privacy statement</a></font></em> </div></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
 
I don't intend to slog through that amount of code for you! You will need to add another <tr> for the Date input, then a <td> for the Label, then a <td> with it's value set to Date(). If this must always be today, with no user input, change the input type to "hidden". Maybe something like:

<tr><td>DATE:</td>
<td><input name="myDate" type="text" value="<%=Date()%>" /></td></tr>

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
johnwm - that is what I was looking for. Thank you so much.
as you can tell I am very new at programming.

Ralph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top