Re: Pop up window in PHP code
| From: | Myron Turner | Date: | Sat, 03 Feb 2007 21:53:12 +0000 |
| Subject: | Re: Pop up window in PHP code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248257@lists.php.net to get a copy of this message | ||
Chris Carter wrote:
I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of "" '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo " <tr> <td>$shopname </td> <td>$category </td> <td>$subcategory </td> <td>$level </td> <td> javascript:poptastic( Details </td> </tr>"; $i++; The javascript code works perfect with other pages and within HTML, its just that the PHP is not supporting the quotes and double quotes. I have even tried &rsquo &rdquo and all.Where are the problem quotation marks? And Is this in fact the actual html that you are outputting? <td> javascript:poptastic( Details </td> Shouldn't it be: <td><a href="javascript:portastic();">hello</a></table> Without the a tag, it just prints the javascript pseudo-url to the screen as text. -- _____________________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/