![]() |
|
|
#1
|
|||
|
|||
|
Help me in this work
Hello!
I want to concatenate PHP variables with JavaScript. But it does not work; My code is as follows: Code:
<?php $name3 = "http://a1708.g.akamai.net/7/1708/110/AH0632217021784/www.shopnbc.com/images/linkshare_banners/logos/shopnbc_125x125.gif"; echo '<script type="text/javascript"> seqslides[0]=["$name3", http://www.dynamicdrive.com"] </script>'; ?> |
|
#2
|
||||
|
||||
|
Because the string you're echoing is between single quotes, and variables won't be parsed between single quotes. Use double quotes, or do:
php Code:
__________________
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple copy/paste work needed, regular work by the hour | FinanceGuy | Content Creation | 50 | Dec 24th 2008 4:36 pm |
| Need Some manual work to be done super quickly. 2-3 Hours copy paste work. | aditya_sfs | Services | 13 | Oct 5th 2007 11:52 pm |
| Needs RSS feeds work bonus if work done early and needs continious work | mansec | PHP | 1 | Jun 15th 2007 4:12 am |
| PAID WORK - Required For - Regular Flash Work & Edits | briancollins | Graphics & Multimedia | 0 | Mar 1st 2007 4:19 pm |
| Web study work required, approx 100 hours of work. | patrickberry | Services | 8 | Nov 15th 2006 7:39 am |