|
-
Feb 10th, 2005, 11:13 AM
#1
Thread Starter
Frenzied Member
Very Odd Form problem [Resolved]
I have a form that has multiple elements on it. When you change any of the select boxes, it reloads the page and changes a few of the other elements.
One of these changes is to show a table with some text boxes in it. If this is the last task that is performed before the form is submitted, those dynamically created (using PHP) text boxes and their values do not get submitted with the rest of the form. It's like those text boxes aren't even there, but I can change their values and type in them and they are physically (or digitally) there.
Does anyone know what is going on here?
Last edited by ober0330; Feb 10th, 2005 at 12:43 PM.
-
Feb 10th, 2005, 12:08 PM
#2
Frenzied Member
Re: Very Odd Form problem
Can you post the outputted HTML?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Feb 10th, 2005, 12:39 PM
#3
Thread Starter
Frenzied Member
Re: Very Odd Form problem
This is "post-dynamic-creation" and I've removed most of the options in the select boxes just to decrease the size:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Volvo Powertrain - Mack Division E&R Lab Databases</title>
<link rel="shortcut icon" href="../images/volvo.ico">
<link rel="stylesheet" type="text/css" href="../ss.css"><script type="text/javascript" src="../js/cnphp.js"></script>
<script type="text/javascript" src="../js/hidemenu.js"></script>
<script type="text/javascript" src="../js/CalendarPopup-combined.js"></script>
<script type="text/javascript">document.write(getCalendarStyles());</script>
</head>
<body><div class="tablehead2">
<div id="floatLheader">VOLVO POWERTRAIN</div>
<div id="floatRheader">Thursday . February 10th . 2005</div>
</div>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="nav" valign="top">
<script type="text/javascript" src="../js/goback.js"></script>
<div class="prev"><a href="../" style="color:white">Database Selection</a></div>
<div id="navmenu">
<p id="navmenudbname">Options:</p><br>
<a href="index.php">Home</a><br>
<a href="cn.php">Cell Equipment</a><br>
<a href="find.php?type=1&action=1" style="color:gray;">- Reports</a><br>
<a href="points.php?point=1" style="color:gray;">- Cal Points</a><br>
<a href="pn.php">Portables</a><br/>
<a href="find.php?type=2&action=1" style="color:gray;">- Reports</a><br>
<a href="points.php?point=2" style="color:gray;">- Cal Points</a>
</div>
<div class="prev"><a href="javascript:goBack()" style="color:white;">« Previous Page «</a><br/><br/></div>
</td><td><h3>Cell Equipment Non-Conforming Action</h3>
<form action="submitreport.php" enctype="multipart/form-data" name="dform" method="post">
<div class="ncsection">Section 1</div>
<div class="ncLRContain">
<div class="ncleft">Record Number:
<span style='font-weight:bold;color:green;font-size:12pt;'>986</span> </div>
<div class="ncright">
Cell Number: <select name="CellNum" size="1" onChange="gofull()">
<option value='3'>3</option><option value='1'>1</option></select>
</div>
</div>
<div class="ncLRContain">
<div class="ncleft">Component Tag Number:
<select name=TagNum size=1 onChange="gofull()"><option value='CAI-005'>CAI-005</option></select>
</div>
<div class="ncright">
<script type="text/javascript">
var cal1df = new CalendarPopup("testdiv1");
cal1df.showNavigationDropdowns();
</script>
Date Discovered: <input type='text' name='Date_Found' size='12' maxlength='10' value='02/10/2005'> <A HREF="#" onClick="cal1df.select(document.dform.Date_Found,'anchor1','MM/dd/yyyy'); return false;" NAME="anchor1" ID="anchor1">select</A>
</div>
</div>
<div class="ncLRContain">
<div class="ncleft">Tag Description:
<span class='chatter'>Peak Cylinder Pressure #1</span><input type='hidden' name='tag_desc' value="Peak Cylinder Pressure #1">
</div>
<div class="ncright">
<script type="text/javascript">
var cal1good = new CalendarPopup("testdiv1");
cal1good.showNavigationDropdowns();
</script>
Last Known to be Good: <input type='text' name='Last_Known' size='12' maxlength='10' value='02/06/2005'> <A HREF="#" onClick="cal1good.select(document.dform.Last_Known,'anchor2','MM/dd/yyyy'); return false;" NAME="anchor2" ID="anchor2">select</A>
</div>
</div>
<div class="ncLRContain">Problem Symptoms:
<input type='text' name='SYMP' size='40' value="stuff" onkeyup='checkap(document.dform.SYMP)'></div>
<div class="ncLRContain">Cal Range:
<select name='CalRange' size='1' onChange="gofull()"><option value='10' selected>0 - 4125 Lb-Ft</option></select> (<a target='_blank' href="points.php?point=1">Add New Range</a>)</div>
<table width='500' align='center' border='1' cellpadding='2' cellspacing='0'><tr><td>Cal Point</td><td class='datac'>4125</td><td class='datac'>3125</td><td class='datac'>2125</td><td class='datac'>1125</td><td class='datac'>0</td></tr><tr><td>Limit</td><td class='datac'>+/-20</td><td class='datac'>+/-20</td><td class='datac'>+/-20</td><td class='datac'>+/-20</td><td class='datac'>+/-20</td></tr><tr><td>Actual</td><td class='datac'><input type='text name='act1' id='act1' size='4' value=""></td><td class='datac'><input type='text name='act2' id='act2' size='4' value=""></td><td class='datac'><input type='text name='act3' id='act3' size='4' value=""></td><td class='datac'><input type='text name='act4' id='act4' size='4' value=""></td><td class='datac'><input type='text name='act5' id='act5' size='4' value=""></td> </tr></table>
<div class="ncLRContain">All Units in: Lb-Ft</div>
<div class="ncformhead">Immediate Resolution of Nonconformity:</div>
<div class="ncLRContain">
<textarea cols='50' rows='3' name='Immed_Res' onkeyup='checkap(document.dform.Immed_Res)'>N/A</textarea></div>
<div class="ncLRContain">
<div class="ncleft">Technician's Name:
<select name='User'><option value='1' selected></option></select> </div>
<div class="nc2col">
Date Generated:
<span class='chatter'>2/10/2005</span><input type='hidden' name='GenDate' value='2/10/2005'> </div>
</div><br/>
<input type=hidden name="point" value="1">
<br/>
<div align='center'><input type="submit" name="s" value="Submit"> <input type="Reset"></div>
</form>
<DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>
<hr width="90%">
<p class="other">Copyright © VOLVO Powertrain
2003-2005<br/>Procedure Modified: 2/9/2005</td></tr></table>
<div class="navbottom" align="center"><img src="../images/php-power-micro.png" width="80" height="15" alt="php icon"></div>
</body>
</html>
-
Feb 10th, 2005, 12:43 PM
#4
Thread Starter
Frenzied Member
Re: Very Odd Form problem
FSCK. Nevermind. I found the problem. I validated the page with the dynamic boxes on there and found that I opened a quote on the "type" field and never closed it.
I fixed that and "wala".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|