Forum Discussion

SarahBurres's avatar
SarahBurres
Qrew Trainee
3 years ago

Code Form is not working

Does anyone see anything obvious with this code that I may be missing?  


<h1 style="text-align: center;">Arcosa Marine</h1>
<p style="text-align: center;">Continuous Improvement Idea Submission</p>

<input type=hidden name=fform value=1>

<h1 style="text-align: center;"><br></h1>
<p></p>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Continuous Improvement Idea Submission</title>
<style type="text/css">
body{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
}
input{margin-left:10px; padding:5;}
select{border:0; margin-left:10px; padding:5;}
p, h1, form, h1, form, button{border:0; margin:0; padding:0;}
.spacer{clear:both; height:1px;}

/* ----------- Add Submission Form ----------- */
.addrequestform{
margin:0 auto;
width:500px;
padding:14px;
}
#stylized{
border:solid 2px #b7ddf2;
background:#EEEEEE;
}
#stylized h1 {
font-size:11px;
font-weight:bold;
margin-bottom:8px;
margin-top:8px;

}
#stylized p{
font-size:11px;
color:#666666;
margin-bottom:20px;
border-bottom:solid 1px #b7ddf2;
padding-bottom:10px;
}
#stylized label{
display:block;
font-weight:bold;
text-align:right;
width:150px;
float:left;
}
#stylized .small{
color:#666666;
display:block;
font-size:11px;
font-weight:normal;
text-align:right;
width:150px;
}
#stylized input.radio{
float:left;
font-size:12px;
padding:4px 2px;

}
#stylized .texta, textarea{
border:solid 1px #aacfe4;
width:300px;
float:left;
font-size:12px;
padding:4px 2px;
margin:2px 0 20px 10px;

}
#stylized .textb, textarea{
border:solid 1px #aacfe4;
width:300px;
height:100px;
float:left;
rows=6;
font-size:12px;
padding:4px 2px;
margin:2px 0 20px 10px;

}
</style>


<h1>CI Idea Submission</h1>

<p>Please enter your submission below. A copy will be emailed to the email address provided. </p>


<label>Name: *
<span class="small">The name of the person to contact about the idea</span></label>
<input type="text" name="_fid_8" class="texta">
<div class="spacer"></div>


<label>Plant:
<span class="small">Select your plant</span></label>
<select name="_fid_33">
<option value="1075 - Caruthersville, MO">1075 - Caruthersville, MO</option>
<option value="1296 - Ashland City, TN">1296 - Ashland City, TN</option>
<option value="Business Unit">1048 - Business Unit</option>


</select>
<hr><div class="spacer"></div>
<div class="spacer"></div>
<h1>Contribution Information</h1>



<label>CI Idea Name:
<span class="small"> </span></label>
<input type="text" name="_fid_6" class="texta">
<div class="spacer"></div>

<label>Description: *
<span class="small">Enter activity/ description</span></label>
<td class=m><textarea name=_fid_7 rows=6 cols=60></textarea></td></tr>
<div class="spacer"></div>



<label>Impact:
<span class="small"></span></label>


<label>Improve Safety
<span class="small"> </span></label>
<input type="checkbox" name="_fid_9" class="texta">
<div class="spacer"></div>


</select>

<div class="spacer"></div>




<label>Picture:
<span class="small">Browse for file</span></label>
<input type="file" name="_fid_16" class="texta">
<div class="spacer"></div>





<p style="text-align: center;"><input type=submit value=Submit>
</form>

<font color=red>* required fields</font>
<script lang="javascript">
function CheckForOther (item, origlen)
{
var sitem = item.options[item.selectedIndex];

if (item.selectedIndex == (item.length - 1))
{
var val = prompt ("ADD A NEW CHOICE:", "");

if (val == null)
item.selectedIndex = 0;
else
{
var slen = item.length;

if (slen == origlen+1){
item.options[slen] = new Option (sitem.text, sitem.value);
}

item.options[item.length-2].text = val;
item.options[item.length-2].value = val;
item.selectedIndex = item.length-2;
}
}
}
</script>
<script lang=javascript>
function validateForm(theForm)
{
if(theForm._fid_8.value == "")
{
alert('Please enter a value for the "Name" field.');
theForm._fid_8.focus();
return (false);
}
if(theForm._fid_7.value == "")
{
alert('Please enter a value for the "Description" field.');
theForm._fid_7.focus();
return (false);
}
}
</script>

------------------------------
Sarah Burres
------------------------------

2 Replies

  • Editing my comment out. If no one else responds I will see if I can take another look later
    • SarahBurres's avatar
      SarahBurres
      Qrew Trainee
      I fixed it.  thanks

      ------------------------------
      Sarah Burres
      ------------------------------