First in generally: How is possible to exange vars between a
form/php/javascript?

I have fetch the data from a MySQL query and I need to pass the $line from a
form to a new php script to show the record in details in one whole page.
I have put a <a href> with onMouseOver but I'll but rather a form <submit>
there to a php script. How is possible not to run another php but to stay on
the same php script to show all $line fields in a page?

The code:
===========================================================================
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$cnt = $cnt+1;

  print "\t<tr>\n";
      print "\t\t<td bgcolor='#C0C0C0'><B>$cnt</B></td>\n";
      $cnt2=0;
    foreach ($line as $col_value) {
    $cnt2=$cnt2+1;
    $ID=$line["ID"];

   if (($col_value!=$line["ID"]) AND ($cnt2<31)) {
   if ($col_value==$line["Name"]) { $col_value="<a href=".'"'.$col_value.'"
onMouseOver="show_rec(ID)">'.$col_value."</a>";   }
    if (($cnt % 2) ==0)
        print "\t\t<td bgcolor='#D0FFD0'>$col_value</td>\n";
        else
            print "\t\t<td bgcolor='#FFFFCC'>$col_value</td>\n";
            }
    }
    print "\t</tr>\n";
}
============================================
Makis


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to