How would you write an echo statement that includes a URL event such as onClick where the parameters following window.open require single quote separation?
In the example, the single quote is interpreted as the end of the echo statement resulting in a parse error.
You can see when a single ' is used with the dot like '.db_result($result,0,'county_web').' this breaks the echo into PHP mode, which is won't do for the window.open client side function.
echo '
<B>County:</B> <A HREF="http://'.db_result($result,0,'county_web').'" onClick="window.open('http://'.db_result($result,0,'county_web').'','county','scrollbars,resizable,width=450,height=350'); return false;'>'.db_result($result,0,'county_name').'</A><BR>';
I want the 'county_name' db_result to be printed as a URL referencing the county_web HREF which will open new browser window with dimensions 450, 350 when someone clicks on it.
Any help would be appreciated.
Chris