php - getting value from textbox -
i have following code:
<input type="hidden" name="qz_id" value="<?=$quizid; ?>" /> <input type="hidden" name="s_id" value="<?=$s_id; ?>" /> <? if($num!=$i) {?><input type="submit" value="next" /><? } ?> <? if($num==$i) {?><input type="submit" name="submit" value="finish" /><? } ?>
this part of whole page of code. trying insert these values in database. can tell me how can value of textbox "answer" , store in php variable? want insert value database once user press next or finish?
here form:
<form id="formresp" method="post" action="respond.php?quiz_id=<?=$quizid ?>" name="register" onsubmit='return validateform(this)'>
also triend $_post['answer'] not working
you can use $_request['answer'];. sort of $_post , $_get.
Comments
Post a Comment