Jump to content

MGLP

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by MGLP

  1. OK. I had to make the "name" different from the "id" in the <input> tag. <input type=\"radio\" name=\"rcd\" id=\"rcd\" value=\"$Row[6]\"> DOES NOT WORK <input type=\"radio\" name=\"choice\" id=\"rcd\" value=\"$Row[6]\"> WORKS Thanks for your help!
  2. I am using the POST method and it doesn't work. The $_POST['rcd'] does not contain anything. It only works if I do a separate print for each record (instead of a loop routine as in my above code) and if I give each <input> tag a separate name/id, e.g., rcdA, rcdB, rcdC, etc. But I dont't want to do this - that's not the way to programme and I also don't know how many records - it's avariable number everytime. So the question is how do I get to pass the "rcd" when using the loop method.
  3. I display a variable number of records and each one has a Radio button for the user to select. Each record has a unique serial number. How can I determine which record was selected and pass this on to my next php file. e.g. of my code: While($cntr < $NumRcds) { $cntr=$cntr+1; if ($AffectedRows > 0) { ($Row = mysql_fetch_row($Results)); print("<input type=\"radio\" name=\"rcd\" id=\"rcd\" value=\"$Row[6]\">); $AffectedRows=$AffectedRows-1; } } Thank you
×
×
  • Create New...