RE: [PHP] :(
| From: | Erick Calder | Date: | Sun, 29 Jul 2001 08:14:30 +0000 |
| Subject: | RE: [PHP] :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60091@lists.php.net to get a copy of this message | ||
your code works for me. it would be helpful to know how your code doesn't
work. does it pop the window at all?
couple of suggestions: use "onClick" instead of "onclick" - if I recall
correctly case matters in Javascript event names depending on your browser.
also, you don't need to use the "javascript:" specifier within event
handlers. additionally you might want to quote the handler code.
- e
-----Original Message-----
From: LDL Enterprise [mailto:webmaster@ldlenterprise.com]
Sent: Sunday, July 29, 2001 12:48 AM
To: *PHP-General mail list
Subject: [PHP] :(
I cannot figure out why this button does not work any suggestions
are appreciated. Thanks.
$table = "inventory";
$sql = "SELECT * FROM $table where category='$category'";
$result = mysql_query($sql);
while ($myrow = mysql_fetch_array($result))
{
printf("<tr><td border=1 bgcolor=#A0AAB9><font face=Lucida Sans Unicode
size=4><form><input type=button value=%s
onclick=javascript:window.open('view_pict.php?picture_id=%s.gif','MyWind
ow','width=450,height=600,menubar=no,scrollbars=yes,toolbar=no,location=
no,directories=no,resizable=yes,top=0,left=0')></form></font></td></tr>
\n", $myrow["product"], $myrow["product"]);
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net