<form action="javascript:DoSCInsert()" method="post">
<textarea onfocus="this.cleared=true;javascript:clearContents(this);" rows="5" cols="40" id="comment" name="comment">...</textarea>
Yes: <input type="radio" value="Y" id="SCvoteY" name="vote"></input> No: <input type="radio" id="SCvoteN" value="N" name="vote"> </input>
<input type="hidden" name="fID" id="fID" value="<? echo $_GET["id"]; ?>" />
<input onsubmit="if (!this.comment.cleared) clearContent(this.comment); return true;" type="submit" name="Submit" value="Stem!"/>
</form>
Ben bu javascript var zaten bu yüzden de bu insertSC.php için çıkış bilgi iletilmesinde:
function DoSCInsert(){
$("#SCres").html("to sek..");
var nocache = '0';
var data = { fID : $("#fID").val(), SCvote : $("#SCvoteY").val(), SCvote : $("#SCvoteN").val(), comment: $("#comment").val(), nocache: nocache };
$.get('insertSC.php', data, onSCInsertComplete);
}
function onSCInsertComplete(data,textstatus){
$("#SCres").html(data);
}
ve benim insertSC.php i bu var:
<?php
echo $_GET['comment']." - ".$_GET['SCvoteY'];
?>
Şimdi ben yorum dışarı olsun ama hiç SCvoteY .... Bu yaptığım sadece bir test, ne ben gerçekten yapıyordu Eğer Y veya N oy olduğunu ve o şimdi oy sütunda Y veya N (siz pickd ne) içine ekler i bunu nasıl edemedim rakam / Bir yerde bir şeylerin yanlış gittiğini ve artık ben bile ben sadece tanımsız dizin almak SCvoteY dışarı alınamıyor
I ile yardıma ihtiyacım var ne ben sadece sana Y seçebilir veya N size çıktı seçmelisiniz ne ya ne zaman istediğiniz söz budur. Herhangi bir (boş isset?) Sonra yanlış tercih etmedi .. Eğer başka (siz ne aldım) Y veya N echo