Hi I am trying to build a submission form that will store the submitted data to a database
I am using an ajax multifile upload and tinymce for the text box
I have attached the forms I am using I am stuck
this is the form
<div align="center" class="column1a">
<form method="post" action="">
<div>
<div>
<?
echo "<form name=jobinfo>\n";
echo "Type : : <font id=type><select>\n";
echo "<option value='0'>== Type ==</option> \n" ;
echo "</select></font>\n";
echo "Dept : <font id=dept><select>\n";
echo "<option value='0'>== Dept ==</option> \n" ;
echo "</select></font>\n";
echo "Priority : <font id=priority><select>\n";
echo "<option value='0'>==== Priority ====</option> \n" ;
echo "</select></font>\n";
?>
<script language=Javascript>
function Inint_AJAX() {
try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {} //IE
try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
try { return new XMLHttpRequest(); } catch(e) {} //Native Javascript
alert("XMLHttpRequest not supported");
return null;
};
function dochange(src, val) {
var req = Inint_AJAX();
req.onreadystatechange = function () {
if (req.readyState==4) {
if (req.status==200) {
document.getElementById(src).innerHTML=req.responseText; //ÃѺ¤èÒ¡ÅѺÁÒ
}
}
};
req.open("GET", "include/ajaxlist.php?data="+src+"&val="+val); connection
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
req.send(null);
}
window.onLoad=dochange('type', -1);
</script>
<br />
<br />
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 60%" class="tinymce"><?php echo $sContent;?></textarea>
</textarea>
</div>
<!-- Some integration calls -->
<!-- <a href="javascript:;" onmousedown="$('#elm1').tinymce().show();">[Show]</a>
<a href="javascript:;" onmousedown="$('#elm1').tinymce().hide();">[Hide]</a>-->
<div align="left" id="swfupload-control">
<p> Upload upto 5 files(jpg, png, gif, doc, docx, pdf,), each having maximum size of 5MB</p>
<input type="button" id="button" />
<p id="files" ></p>
<ol id="log"></ol>
</div>
<br />
<input type="submit" name="save" value="Submit" />
<input type="reset" name="reset" value="Reset" />
</div>
</form></pre></code>
</div>