Topic: Xhtml strict, form tags and javascript.
With regards to xhmtl1.0 strict, the 'name=' attribute isn't allowed in the '<form' tag, so is there any way to make the combination below work without it?
438 <script type="text/javascript">
439 function AddSmiley(text) {
440 var txtarea = document.post.req_message;
441 text = ' ' + text + ' ';
442 if (txtarea.createTextRange && txtarea.caretPos) {
443 var caretPos = txtarea.caretPos;
444 caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
445 txtarea.focus();
446 } else {
447 txtarea.value += text;
448 txtarea.focus();
449 }
450 }
451 </script>
452
453
454 <div class="blockform">
455 <h2><span><?php echo $lang_topic['Quick post'] ?></span></h2>
456 <div class="box">
457 <form id="post" name="post" method="post" action="post.php?tid=<?php echo $id ?>" onsubmit="this.submit.disabled=true;if(process_form(this)){return true;}else{this.submit.disabled=false;return false;}">
Cheers,
Matt