Jump to content

help with error code?


polarbear

Recommended Posts

hi could really do with some help

I'm currently editing my site, to do that i need to edit the head.php, head.php. mhead.php and mfoot.php files

When i open up the head.php using notepad. i have this code:

<title><? echo("$title"); ?></title>

this is from the head.php file and i'm guessing it's telling the site to display the relevant page name, such as home, terms, signup  page, therefore i leave this alone?

 

 

further down the page but still within the </head> area, i have this code:

 

<? echo("<script language=\"JavaScript\">\n<!--\n\ndefaultStatus = '$title';\n\nfunction movein(which,html){\nwhich.style.background='white'\n}\nfunction moveout(which){\nwhich.style.background='#EEEEEE'\n}\n\n// -->\n</script>"); ?>

When viewed in iexplorer i get  \n\n"); ?> showing on the page as well as the sites contents and menu. like it's excess code. is there anything missing? and what purpose does this have. i see refernce to background, my background will be changed to a black,  however i will be adding an image which will need to appear on all the non member pages

 

Outside the </head> area i get the following code

<a href="<? echo("$site_url/privacy.php"); if ($rid) {echo("?rid=$rid"); }?>">Privacy</a>

 

i know this is part of the links on and for the home page, with this link in the non preview view everything seems in order, however when viewed though iexplorer  "> shows next to the link which i can tell is the "> by the }?>">Privacy</a>. is it safe just to delete the "> part?

 

i haven't altered/uploaded any files to overwrite the originals,

 

hopefully you guys can make sense of what i've typed, and thank you in advance for reading this post and taking the time to replay.

 

thanks

Polar

Link to comment
Share on other sites

For a start echo isn't a function, so there's no need to add brackets.

 

The "> showing up is because (I think) you're using " inside other " and it's thinking you've just ended the attribute, so use '.

 

For the first question, I have no idea why that would be showing :(

 

 

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.