php - Passing through GET method some hidden values -


I am trying to get names from a query and pass each of them through the GET method, so When the "Answer" rank, it will open a child window in which I can find out which user and the value was evaluated.

  while ($ line = mysql_fetch_array ($ result)) {echo "div"; div class = 'answer' & gt; $ Line ['user'] "Has replied: 
gt; & lt; dd & gt; $ Line ['answer']. "& Lt; / dd>"; ? & Gt; & Lt; Dd & gt; & Lt; Form method = 'GET' action = 'votes.php' & gt; & Lt; Input type = "hidden" name = "x" value = "& lt ;? php echo $ line ['answer'];? Gt; /> & Lt; Input type = 'submit' / & gt; & Lt; / Form & gt; & Lt; One onclick = "javascript: popUp ()" & gt; Rank: & lt ;? Php echo $ row ['k'];; & Gt; & Lt; / A & gt;

The problem is that when I try to get an answer for the inquiry into the votes, then it says that $ _ GET ['x'] Undefined?

  if (isset ($ _ session ['email'])) {if (isset ($ _GET ['x'])) {$ ans = $ _GET ['x' ]; WHERE answers = '$ ans' for voting in the form of $ Query = "SELECT User, AES_DECRYPT (vote, 'USA');  

thanks in advance


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -