addtrain Posted October 5, 2007 Share Posted October 5, 2007 ok, well, my friend gave me a code a while back, but it dosen't work... can someone help me? you can go to my webpage, http://crazyadds.freeweb7.com/, and look at the code. it just looks like a text document? here is the code. <!--p $ridersfile = "riders.txt"; $baseurl = "http://mspowerwhore.freeweb7.com/"; --> <link href="http://www.myspace.com/favicon.ico" rel="shortcut icon" /><!-- body { margin:0cm; background-color:white; } .rule { font-family:tahoma,arial; font-size:14px; color:ffffff; background-color:white; } .paragraph { font-family:tahoma,arial; font-size:14px; color:000000; background-color:white; } .logo { background-color:white; } table { width:700px; } td } img { border-width:0px; } input { font-family:tahoma;arial; background-color:white; color:black; font-size:14px; } --> <table cellspacing="0" cellpadding="5" align="center"> <!--p if(array_key_exists("a", $_POST)) {$a = $_POST["a"];} else {$a = "";} $riders = file($ridersfile); $count = 0; $addedcount = 0; foreach($riders as $key--> <tbody> <tr> <td class="paragraph" align="center"><br /> <form action="" method="post" target="_self"> '; echo '<input type="hidden" name="a" value="' . $a . '[' . $value . ']" />'; echo '<input onclick="window.open('http://collect.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=' . $value . '')" type="image" src="http://i12.tinypic.com/4cj1uee.gif" name="submit" />'; echo ' </form> '; if($valueadded !== false) { echo '<font color="#008000"><strong>Added! =]]</strong></font>'; $addedcount++; } else {echo '<font color="#ff0000"><strong>Not added =[[</strong></font>';} echo '</td> </tr> <tr> <td class="paragraph"> </td> </tr> </tbody> </table> <center><br /> <table style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" cellspacing="0" cellpadding="5" align="center"> <tbody> <tr> <td class="paragraph" style="FONT-WEIGHT: 600"><center> <form action="post.php" method="post" name="frmfriendid"> Friend ID: <input maxlength="10" size="15" name="friend_id" /> <br /> <br /> <!--p if($repost == 0) {echo " [Add Everyone Above]";} else { echo"<input type=submit name=subfriend_id value=Log-->"; }?> </form> <!--p if($repost == 0) {echo '<span style="color:990000;">Login button will appear<BR> when you add everyone.</span><br> ';}--><br /> </center></td> </tr> </tbody> </table> <br /> <center><script language=JavaScript> <!-- //Disable right click script III- By Renigade (renigade@mediaone.net) //For full source code, visit http://www.dynamicdrive.com var message="Nice Try Thief "; /////////////////////////////////// function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") // --> </script></center></center> Quote Link to comment https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/ Share on other sites More sharing options...
BlueSkyIS Posted October 5, 2007 Share Posted October 5, 2007 starts with an invalid tag, it appears to me: <!--p should be <?php the you close improperly too. --> should be ?> that's as far as i can get before my head hurts. Quote Link to comment https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/#findComment-362781 Share on other sites More sharing options...
GingerRobot Posted October 5, 2007 Share Posted October 5, 2007 I have to wonder, it what way is an incorrect opening tag "advanced php"? Quote Link to comment https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/#findComment-362812 Share on other sites More sharing options...
env3rt Posted October 5, 2007 Share Posted October 5, 2007 Haha the whole thing is html/css besides the beginning Quote Link to comment https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/#findComment-362818 Share on other sites More sharing options...
BlueSkyIS Posted October 5, 2007 Share Posted October 5, 2007 I have to wonder, it what way is an incorrect opening tag "advanced php"? it made me feel very advanced to answer the question. i are smrt. Quote Link to comment https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/#findComment-362820 Share on other sites More sharing options...
addtrain Posted October 5, 2007 Author Share Posted October 5, 2007 ok wow. thank you all for the useless replys. jk. shouldn't it be <?php instead of <!--p ? anyway, thats the way the host formats it. Quote Link to comment https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/#findComment-362918 Share on other sites More sharing options...
MadTechie Posted October 5, 2007 Share Posted October 5, 2007 to advanced for me... or just maybe too little info! ??? Quote Link to comment https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/#findComment-362984 Share on other sites More sharing options...
teng84 Posted October 5, 2007 Share Posted October 5, 2007 starts with an invalid tag, it appears to me: <!--p should be <?php the you close improperly too. --> should be ?> that's as far as i can get before my head hurts. maybe they have a parser for that code that replace <--p to <?php @addtrain is this a single page that is read by the browser? or theres some pages that parse those code hmm ! or how do you save your file sometimes when you save your file as .html php tags is not working Quote Link to comment https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/#findComment-362987 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.