scripter73
Programmer
Hi,
This one sounds like it should be easy. I just can't figure it out at the moment.
I have a form that allows a user to enter in a date range. You know the standard MM/DD/YYYY. I'm trying to align the captions MM DD YYYY under each box as appropriate. How can I do that? Should I use a table? However, in my <CFFORM>, I didn't use a table so now I'm not sure.
I know this thread sounds like it should be under HTML (basic fundamentals), but the <CFFORM> issue caused me to post it here.
Here's my code if you just want to paste it into your text editor real fast.
<html>
<head>
<title>Untitled</title>
<script language="javascript">
function show_value(){
alert(document.form1.month.value);
}
</script>
</head>
<body>
<cfform name="form1" action="" method="get">
<cfinput type="text" name="startmonth" value="02" maxlength=2 size=3>
<cfinput type="text" name="startday" value="01" maxlength=2 size=3>
<cfinput type="text" name="startyear" value="2002" maxlength=4 size=5>
TO
<cfinput type="text" name="endmonth" value="02" maxlength=2 size=3>
<cfinput type="text" name="endday" value="01" maxlength=2 size=3>
<cfinput type="text" name="endyear" value="2002" maxlength=4 size=5>
<input type="submit" name="submit" onclick="show_value();">
<br>
</cfform>
</body>
</html>
Thanks in advance for any help you can provide.
scripter73
Change Your Thinking, Change Your Life.
This one sounds like it should be easy. I just can't figure it out at the moment.
I have a form that allows a user to enter in a date range. You know the standard MM/DD/YYYY. I'm trying to align the captions MM DD YYYY under each box as appropriate. How can I do that? Should I use a table? However, in my <CFFORM>, I didn't use a table so now I'm not sure.
I know this thread sounds like it should be under HTML (basic fundamentals), but the <CFFORM> issue caused me to post it here.
Here's my code if you just want to paste it into your text editor real fast.
<html>
<head>
<title>Untitled</title>
<script language="javascript">
function show_value(){
alert(document.form1.month.value);
}
</script>
</head>
<body>
<cfform name="form1" action="" method="get">
<cfinput type="text" name="startmonth" value="02" maxlength=2 size=3>
<cfinput type="text" name="startday" value="01" maxlength=2 size=3>
<cfinput type="text" name="startyear" value="2002" maxlength=4 size=5>
TO
<cfinput type="text" name="endmonth" value="02" maxlength=2 size=3>
<cfinput type="text" name="endday" value="01" maxlength=2 size=3>
<cfinput type="text" name="endyear" value="2002" maxlength=4 size=5>
<input type="submit" name="submit" onclick="show_value();">
<br>
</cfform>
</body>
</html>
Thanks in advance for any help you can provide.
scripter73
Change Your Thinking, Change Your Life.