Can anyone tell me what's wrong with this?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Can anyone tell me what's wrong with this?
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
When I upload it everything on my site gets pushed to the right.

<?php
if (eregi("block-Nuke_Sites.php",$_SERVER['SCRIPT_NAME'])) {
    Header("Location:../index.php");
    die();
}

$content .= "";
$content .= "<center>";
$content .= "<table>";
$content .= "<TR>";
$content .= "<td><font class="content"><font class="content"><p align="center"><font size="1"><select name="NukeSites" onChange="parent.location=this.options[this.selectedIndex].value" size="1">";
$content .= "<option selected>Select A Nuke Site</option>";
$content .= "<option value="http://www.phpnuke.org">PHPNuke.org</option>";
$content .= "<option value="http://nukecops.com">Nuke Cops</option>";
$content .= "<option value="http://www.phpnukefiles.co">PHPNuke Files</option>";
$content .= "<option value="http://www.nukemods.com">Nuke Mods</option>";
$content .= "<option value="http://www.castlecops.com">Castle Cops</option>";
$content .= "<option value="http://www.nukeresources.com">Nuke Resources</option>";
$content .= "<option value="http://www.nukefixes.com">Nuke Fixes</option>";
$content .= "<option value="http://ravenphpscripts.com">Raven Scripts</option>";
$content .= "<option value="http://www.karakas-online.de">Chris Karakas</option>";
</font></select></font></font></td>";
$content .= "</TR>";
$content .= "</table>";
$content .= "</center>";
?>



Back to top Reply with quote
#2   re: Can anyone tell me what's wrong with this?
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
could you attach it in .zip file please.



Back to top Reply with quote
#3   re: Can anyone tell me what's wrong with this?
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
Here



Attached Files
block-Nuke_Sites.zip (588 Bytes, Downloaded: 5232 Time(s))


Back to top Reply with quote
#4   re: Can anyone tell me what's wrong with this?
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
I would just post the code but it would strip the slashes anyway. Here is the run down.

Missing this on one line
$content .="


and in front of the closing quotation on every link url you were missing a forward slash.

You can compare the two I am sure you will see what I am saying.


Attached Files
block-nuke_sites.zip (1.2 KB, Downloaded: 5233 Time(s))


Back to top Reply with quote
#5   re: Can anyone tell me what's wrong with this?
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
Thanks. But, I can't download the zip file.

It says access forbidden.

Besides that, I found that and fixed it and it still didn't work.



Back to top Reply with quote
#6   re: Can anyone tell me what's wrong with this?
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
hmm.. it works fine for me... the download and all

Hosted on my server for a short minute. Please respond asap

Link Removed by Floppy



Back to top Reply with quote
#7   re: Can anyone tell me what's wrong with this?
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
Ok that worked. Thanks!

But, I can't find where I went wrong. Can you point me to it?

It was my very first php script.



Back to top Reply with quote
#8   re: Can anyone tell me what's wrong with this?
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 
The first thing was this on one of the lines you were missing this
$content .="


I think you understand that.

The second part is kinda confusing due to the fact I can't just post the straight code. As I mentioned earlier, the forums are stripping the slash I need to show you.

<option value=(slash)"http://www.codezwiz.com(slash)">Codezwiz.com</option>


I think you get the idea. I hope this helps.


Back to top Reply with quote
#9   re: Can anyone tell me what's wrong with this?
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
Ok, I see it.

Thanks.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum