http:// in php

Status
Not open for further replies.

Yatagrasu

New Member
Messages
12
Reaction score
0
Points
0
Hi,

I need to use the echo statement in php to call the corporate ad script, but I cant use:
PHP:
echo "<script type="text/javascript" src="http://x10hosting.com/adserve.js?corporate"></script>";
Because everything after the // will be considered a comment.

I'm using a php comment script that, once submitted, takes you to a 'thank you' page and then redirects you. But I need the ad to display there. How can I call the ad script without it parsing it as a comment?

Sorry if I'm missing something obvious here, but I'm stumped.
 
Last edited:

pontus

New Member
Messages
2
Reaction score
0
Points
0
Write
PHP:
echo '<script type="text/javascript" src="http://x10hosting.com/adserve.js?corporate"></script>';
or
PHP:
echo "<script type=\"text/javascript\" src=\"http://x10hosting.com/adserve.js?corporate\"></script>";
 
Status
Not open for further replies.
Top