Hi Guys…
Here is my quandry..
I am trying to write a simple language translation web page that displays a dynamic checkbox list of words that can be translated into a different language.
eg.
[B]<input type=’checkbox’ name=’phrase[]’ value=’1′> Hello<br></tr><tr>
<input type=’checkbox’ name=’phrase[]’ value=’2′> Yes<br></tr><tr>
The user checks the words that they would like translated and this is then passed to a select.php script using post.
in my select.php script I run a little bit of test code to make sure I can see data in my array:
[B]$array=$_POST[‘phrase’];
if ($array) {
foreach ($array as $phrases) {echo ‘you selected ‘,$phrases,'<br />’;}
And this appears to work fine.
Where I am now stumped is how I include this into a mysql_query so that it carries out and displays a select request for each selection.
I have been looking at foreach loops and implode….but I have now just confused myself 🙁
Any help/advice greatfuly received !!!
Cheers
Heave