PHP & Javascript variables
Posted: Thu Feb 26, 2004 5:40 pm
Hi,
can anyone help with my crap code. I basically have a mysql database full of articles. I wrote a query to access certain types of article. The results I put in to a table. In the while ($myrow = mysql_fetch_row($result)) I added a column in the table with a radio button.
printf("<TR><TD bgcolor=blue><input type=radio onclick=setCount(value) value=%s name=Lagp></TD>\n",$count);
I want to check which row is selected before going off and either printing or editing the article. The problem I have is that I want to make a php variable ie $rowCount = value (the form radio button value of the row which is selected) But I can't - please help me convert one type of variable to another.
Thanks
can anyone help with my crap code. I basically have a mysql database full of articles. I wrote a query to access certain types of article. The results I put in to a table. In the while ($myrow = mysql_fetch_row($result)) I added a column in the table with a radio button.
printf("<TR><TD bgcolor=blue><input type=radio onclick=setCount(value) value=%s name=Lagp></TD>\n",$count);
I want to check which row is selected before going off and either printing or editing the article. The problem I have is that I want to make a php variable ie $rowCount = value (the form radio button value of the row which is selected) But I can't - please help me convert one type of variable to another.
Thanks