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
https://forums.phpfreaks.com/topic/233230-noob-problem/
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
https://forums.phpfreaks.com/topic/233230-noob-problem/#findComment-1199474
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.