Jump to content

noob problem


mknjhill

Recommended Posts

Ok so heres the deal,  my friend wrote this for me, hes currently unavailable and i messed it up a bit. 

 

http://pastebin.com/k937xDve < there is the code.

 

all i did is add the

 target="name" onclick="window.open('http://www.web-hosting-service.org/green-certified.php?greensite=.$domain.','name','height=255,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no'); return false;"

 

bit. 

 

and now i get the error

Parse error: syntax error, unexpected T_STRING in seal-generator.php

Link to comment
Share on other sites

Yes, the problem is that when PHP comes across those single quotes, it thinks it is supposed to stop echoing and move on to the next command, but you don't want it to do that, so you need to escape them by placing a \ before them.  This will essentially tell the PHP parser to skip over them in terms of syntax.

 

So yeah, put a backslash (\) before all of the single quotes (') except for the two that I pointed out earlier, since you DO what PHP to parse those :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.