<input type="submit" name="button" id="button" value="Submit" onClick="sendedit('field','value','id_prs','lang','retrunajax');"> <label id="retrunajax"></label> <script> function sendedit(field,value,id_prs,lang,id_field_label){ //alert(field);alert(value);alert(id_prs);alert(lang); 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 } var req = Inint_AJAX(); // Object //alert(field); req.open('GET', './ex_trun_call.php?value='+encodeURIComponent(value)+'&field='+encodeURIComponent(field)+'&lang='+encodeURIComponent(lang)+'&id_prs='+encodeURIComponent(id_prs), true); // req.onreadystatechange = function() { // if (req.readyState==4) { if (req.status==200) { // var data=req.responseText; // document.getElementById(id_field_label).innerHTML=""+data; // } } }; req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); // req.send(null); // } </script>
<? $s.="<script type=\"text/javascript\"> alert('ok'); </script>"; $s.="fdfdfdf"; echo $s; ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง