I'm not sure how to word this but I'll start off with some code I have:
$result = mysql_query("SELECT * FROM Music") or die(mysql_error());
while($row = mysql_fetch_array($result))
{
echo htmlentities($row['Title']);
echo htmlentities($row['parta']);
echo htmlentities($row['partb']);
echo htmlentities($row['partc']);
echo "<p>";
}
This outputs to a html page.
I have another php script which accepts multiple variables
I want to be able to generate a (radio)/submit button at the end of each iteration of the while loop that will send the data from $row['parta'], $row['partb'] etc. to my other php script using post (get is too small).
I was thinking that maybe I could generate forms with 4 un-editable textareas with $row['parta'] etc displayed in it or something and submit using post but then I got lost.
Previously with the other script, I had it using GET and working as:
<?p ... ... echo "<a href=\"[url]/myscript.php?a=$row['parta']&b=$row['partb']\">Link</a>"; ... ?>
Not sure if my description was clear enough, but thats what I needed to change.

New Topic/Question
Reply




MultiQuote



|