Re: Pop up window in PHP code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux