0

Hi friend, i have 2 files
1. ft.php and
2. inf.php

this is ft.php

<script type="text/javascript">
function setTXT(x)
{
	opener.document.fmain.mms.value=x;
	window.close()
}
</script>
<? include_once "conf.php";
   $sql="select id,pl,inf from det_pl"; $data=mysql_query($sql);
?>

<br>
<table width="100%">
  <tr> <td align='center' class="headlist" >no</td>
   <td align='center' class="headlist" <?=$colspan?> >code</td>
   <td align='center' class="headlist" <?=$colspan?> >sms</td>
   <td align='center' class="headlist" <?=$colspan?> >inf</td>
  </tr>
  
  <?
  while($row=mysql_fetch_array($data)){
           $id_temp=stripslashes($row["id"]);
		 $ok=stripslashes($row["pl"]);
				 $temp=stripslashes($row["inf"]);
         
	$i++;
			 
?><tr> 
   <td class='style5' width="4%"  ><?=$i?></td>
   <td class='style5' onClick="setTXT('<?=$id_temp?>')"><div align="left">&nbsp;<?=$id_temp?></div></td>
   <td class='style5' onClick="setTXT('<?=$ok?>')"><div align="left">&nbsp;<?=$ok?></div></td>
   <td class='style5' onClick="setTXT('<?=$temp?>')"><div align="left">&nbsp;<?=$temp?></div></td>
  </tr>  
<?

} ?>
  </table>

and this inf.php

<script type="text/javascript">
function OpenSearch(name)
{
	wnd = window.open(name,"","menubar=0,statusbar=0,height=600px,width=1024px,status=1,resizable=0,left=0,top=0,scrollbars=1");
	wnd.focus();
} 
</script>
<form enctype='multipart/form-data' target='_self' method='post' name='fmain'>
<table>
<tr><td valign='top'><input  type='button' name='Button2' value=' ... ' onClick=\"Javascript:OpenSearch('ft.php')\">
</br><textarea name='mms' cols='40' rows='4' wrap='hard'>[B]$mms[/B]</textarea></td></tr>
<tr> <td ><input type='submit' name='save' value='save'></td></tr>
</table></form>

from here I can only take values : pl from $mms
I want to take the value of the id, pl, inf, anyone help me..

Edited by ivanichi: n/a

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by AleMonteiro
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.