Go Back   Netpond ™ > Webmaster Forums and Resources > Adult Webmasters Main Forum
Register FAQ Calendar Radio and TV NP Shop Search Today's Posts Mark Forums Read

Adult Webmasters Main Forum Friendly adult web master chat, help and information

Anal, Ethnic, Pornstar, Shemale
Megasite, DVD Download, Gay Megasite, DVD Download, Gay Voyeur, Fetish
Reply
 
LinkBack Thread Tools Display Modes
Old 12-02-2007, 03:07 PM   #1 (permalink)
Paul&John
www.shittywork.com
 
Paul&John's Avatar
 
Join Date: Sep 2004
Location: ~~~ SEE SIG ~~~
Posts: 19,210
Points: 1,228
Send a message via ICQ to Paul&John
Exclamation html template in php

Hi there!

For example i got a template file which is used for a boards index page, for example:

PHP Code:
    echo '
                <td class="maintab_' 
$last '">&nbsp;</td>
            </tr>
        </table><br>
        <p align="center">
        <script type="text/javascript" language="JavaScript">
document.write('
<if'+'rame width="728px" height="90px" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" scrolling="no" style="border:0px;overflow:hidden;width:728px;height:90px;" src=""></if'+'rame>');
</script>
        </p>
            '
;


now this won't work because in echo ' ' is an other ' part (in the script), what else can i use there instead of '?

Thanks!
__________________
CHAMELEON MULTI-LICENSES FOR SPONSORS
CHECK OUT THIS THREAD NOW
also check out the my best sponsor: RageCash
Paul&John is online now   Reply With Quote Send a private message to Paul&John
Old 12-02-2007, 04:16 PM   #2 (permalink)
redwhiteandblue
I can change this but I can't be arsed
 
redwhiteandblue's Avatar
 
Join Date: Dec 2006
Location: United States of Kingdom
Posts: 253
Points: 1,270
Send a message via ICQ to redwhiteandblue
Quote:
Originally Posted by Paul&John
Hi there!

For example i got a template file which is used for a boards index page, for example:

PHP Code:
    echo '
                <td class="maintab_' 
$last '">&nbsp;</td>
            </tr>
        </table><br>
        <p align="center">
        <script type="text/javascript" language="JavaScript">
document.write('
<if'+'rame width="728px" height="90px" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" scrolling="no" style="border:0px;overflow:hidden;width:728px;height:90px;" src=""></if'+'rame>');
</script>
        </p>
            '
;


now this won't work because in echo ' ' is an other ' part (in the script), what else can i use there instead of '?

Thanks!
It won't work because PHP treats a string delimited by single quotes as literal, so doesn't parse the variables.

You need to do:

PHP Code:
    echo "
                <td class=\"maintab_$last\">&nbsp;</td>
            </tr>
        </table><br>
        <p align=\"center\">
        <script type=\"text/javascript\" language=\"JavaScript\">
document.write('<if'+'rame width=\"728px\" height=\"90px\" marginwidth=\"0\" marginheight=\"0\" vspace=\"0\" hspace=\"0\" allowtransparency=\"true\" frameborder=\"0\" scrolling=\"no\" style=\"border:0px;overflow:hidden;width:728px;height:90px;\" src=\"\"></if'+'rame>');
</script>
        </p>
            "
;


__________________
UK Adult Systems Hardlinks - Toplists - Traffic trades - Webmaster resources
redwhiteandblue is online now   Reply With Quote Send a private message to redwhiteandblue
Old 12-02-2007, 04:30 PM   #3 (permalink)
jumpstart
Linkdump Rulez
 
jumpstart's Avatar
 
Join Date: Oct 2004
Location: Home
Posts: 1,203
Points: 2,685
Send a message via ICQ to jumpstart
you can use echo " "; and use ' as quote in the html or vice versa...
__________________
CECash (pay per email address)
JuggCash (pay per signup/revshare)
and remember...there's no *real* money in ePassporte
jumpstart is offline   Reply With Quote Send a private message to jumpstart
Old 12-02-2007, 04:31 PM   #4 (permalink)
RawAlex
Netpond's favorite point post ho!
 
Join Date: Nov 2007
Posts: 105
Points: 525
Another choice is to assemble what you want to output into a variable, and the just write the variable out.
RawAlex is offline   Reply With Quote Send a private message to RawAlex
Old 12-02-2007, 04:40 PM   #5 (permalink)
BigBen
....
 
Join Date: May 2005
Posts: 900
Points: 4,500
use a heredoc and echo out the var.
BigBen is online now   Reply With Quote Send a private message to BigBen
Old 12-03-2007, 10:32 AM   #6 (permalink)
Paul&John
www.shittywork.com
 
Paul&John's Avatar
 
Join Date: Sep 2004
Location: ~~~ SEE SIG ~~~
Posts: 19,210
Points: 1,228
Send a message via ICQ to Paul&John
redwhiteandblue your thingy works, thanks a lot
__________________
CHAMELEON MULTI-LICENSES FOR SPONSORS
CHECK OUT THIS THREAD NOW
also check out the my best sponsor: RageCash
Paul&John is online now   Reply With Quote Send a private message to Paul&John
Reply


Thread Tools
Display Modes



Netpond Resources
Resource Directory Tutorials & Articles Webmaster Tools Netpond News
 
Netpond Resources
LoveDollars WildCash PussyCash SilverCash
Fetish Hits Cyberwurx BoobBucks.NET Python
AEBN GroobyBucks Score-Cash XMoney
Rabbits Reviews CraziesCash TrafficCashGold EvilAngelCash
Orgycash BigClicks Webcams TubeClicks
Free Porn Paradise British Porno British Porn Models ShanesworldCash
Voyeur, Fetish Anal, Ethnic, Pornstar, Shemale
All times are GMT -4. The time now is 09:26 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
vBCredits v1.4 Copyright ©2007, PixelFX Studios