I am new in PHP. I have two files. file_upload.php
and test1.php
i have a button on file_upload.php
<input type="button" value="Link More Opinion" onclick="popUp('test1.php');" />
JavaScript of that Button
<script type="text/javascript">
function popUp(url) {
window.open(url,'PHP Pop Up','width=500,height=500');
}
</script>
When i click on Button test1.php
file is open in Pop Up window contain checkbox
Here is code
<?php
include "connection.php";
$sql= "SELECT * FROM `og_companies` ORDER BY name";
$result = mysql_query($sql) ;
while($row = mysql_fetch_array($result))
{
$all_opinions[] = $row['name'];
}
$all_opinions_implode = implode(",", $all_opinions);
$all_opinions_explode = explode (",", $all_opinions_implode);
?>
<form action="file_upload.php" id="form" method="post" name="form">
<?php
for ($i=0; $i<count($all_opinions_explode); $i++) {
echo "<input type='checkbox' name='test_link' > $all_opinions_explode[$i]";
//echo ;
echo'</br>';
}
?>
<input type="submit" name="submit" id="submit" value="submit"/>
Now i want to get Value of Checkbox on file_upload.php
but i fail. Can anyone please help me?