Jump to content

paulman888888

Members
  • Posts

    332
  • Joined

  • Last visited

    Never

Everything posted by paulman888888

  1. Its properly your IE not the script. My advise get an update or a new pc or FIREFOX
  2. I know i shouldn't ask but i will. Can you show me one please or make one please. I havent learnt sessions yet, but i do know post and get. thankyou very much.
  3. sorry misunderstood. If your useing page frames then it will work. PHPmyVisits has a built in multi-site meaning it can keep track of all pages in all sites. It also has a built in redirector so you know which buttons are being clicked. Try it. I like it.
  4. Could i use Something like (I don't know how to write this in php language) <?php $password = anything //i will change this later If $post[password] is = to $password { code goes here think } else { echo Wrong password} ?>
  5. Can i use post data? Something like (I don't know how to write this in php language) <?php $password = anything //i will change this later If $post[password] is = to $password ?>
  6. Use PHPmyvisits. Its very good at every thing. http://www.phpmyvisites.us/
  7. I don't know whats the best way to protect a page. I would like to set up a password at the top of my page. It's not a user sign then can view the page type of think. Just a quick enter password and then your in type of thing. It's just for me and my mate. I don't want to use Mysql.
  8. is this right? <?php $filename = "games/{$_POST['name']}.php"; if (file_exists($filename)) { echo "Theres an error. That file already exists. Go back and change the name of the game."; } else { $ourFileName = "games/{$_POST['name']}.php"; $ourFileHandle = fopen($ourFileName, 'w') or die("Can't make file"); fclose($ourFileHandle); $myFile = "games/{$_POST['name']}.php"; $fh = fopen($myFile, 'w') or die("There's an error!"); $stringData = "$_POST['main'].php"; fwrite($fh, $stringData); fclose($fh); } ?> thankyou
  9. whats the differnce between $_POST['name'] and $_POST[name].php? do the ' doing anything?
  10. This is my code! <?php $ourFileName = "games/{$_POST['name']}.php"; // the name of the file to be made $ourFileHandle = fopen($ourFileName, 'w') or die("Can't make file"); fclose($ourFileHandle); $myFile = "games/{$_POST['name']}.php"; $fh = fopen($myFile, 'w') or die("There's an error!"); $stringData = "$_POST[main].php"; fwrite($fh, $stringData); fclose($fh); ?> I would like something to check if the file name already exists. Can someone please help. Thankyou
  11. Download it here http://www.scottwilburn.com/downloads/smarty_ext.zip
  12. This is the page source from FIREFOX. <form method="post" action="addgame.php"> <p>Name: <label> <input type="text" name="Name" id="Name" /> </label> </p> <p> <!-- Include the Free Rich Text Editor Runtime --> <script src="freerte_v1/js/richtext.js" type="text/javascript" language="javascript"></script> <!-- Include the Free Rich Text Editor Variables Page --> <script src="freerte_v1/js/config.js" type="text/javascript" language="javascript"></script> <!-- Initialise the editor --> <script> initRTE('', 'freerte_v1/examples/example.css'); </script> <input type="submit"> </p> </form> Hope it helps
  13. The template still doesn't load or work but i dont want to waste anymore of your time. Don't reply if you got more important things to do. Thankyou all anyway
  14. I have used that and what you said and it comes up with this error. Parse error: parse error, unexpected ';' in /home/www/notgiveingmyproperwebsite.com/addinggame2.php on line 13 [/code]
  15. I have tryed all above. I don't know what to do or how i can help you help me. Thankyou anyway
  16. that doesn't work. The editor doesn't load or appear. this is the full code <?php function freeRTE_Preload($content) { // Strip newline characters. $content = str_replace(chr(10), " ", $content); $content = str_replace(chr(13), " ", $content); // Replace single quotes. $content = str_replace(chr(145), chr(39), $content); $content = str_replace(chr(146), chr(39), $content); // Return the result. return $content; } // Send the preloaded content to the function. $content = freeRTE_Preload("THIS IS WHERE I WANT MY HTML CODE") ?> <form method="post" action="addgame.php"> <p>Name: <label> <input type="text" name="Name" id="Name" /> </label> </p> <p> <!-- Include the Free Rich Text Editor Runtime --> <script src="freerte_v1/js/richtext.js" type="text/javascript" language="javascript"></script> <!-- Include the Free Rich Text Editor Variables Page --> <script src="freerte_v1/js/config.js" type="text/javascript" language="javascript"></script> <!-- Initialise the editor --> <script> initRTE('<?= $content ?>', 'example.css'); </script> <input type="submit"> </p> </form> I how that helps. Please help Thankyou
  17. I cant use that because my HTML page has ' in them so it makes errors. Anymore ideas? Thankyou
  18. [quote author=pixeltrace link=topic=86816.msg349362#msg349362 date=1140897524] guys, i need help on this. kindly check [a href=\"http://www.sinagtala.net/sinag3\" target=\"_blank\"]http://www.sinagtala.net/sinag3[/a] notice the hit counter on the upper right corner whenever i go to the other page it adds up again. what i wanted to happen is that it will just hit on the index page and not on the subpages anymore this is my script for the index page and the other subpages. [/quote] Your website does'nt exist.
  19. you can save the database on your computer useing PHPmyAdmin. When you saved it go to your Mysql server (not the one on your pc). Then upload it useing PHPmyadmin giveing you PC less work to do.
  20. I want to put this is my php code. <table width="100%" border="1" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC"> <tr><td width="23%" rowspan="2"><table width="66%" border="1" bordercolor="#000000"><tr><td><center><img src="http://www.civage.com/team/images/paul.gif" alt="Demo" width="175" height="170" longdesc="demo" /> </center></td></tr><tr><td><center>In Game Screenshot</center></td></tr></table></td> <td width="68%" height="38"><strong>Area T9</strong></td> <td width="9%"><img src="../Images/flag/UK.png" alt="English" width="65" height="34" longdesc="English"></td></tr><tr><td colspan="2"><p>Size: 9.4mb<br /> Version: 1<br /> Type: Beta<br /> <a href="http://civage.com/downloads/index.php?act=view&id=7" target="_self" onMouseOver="MM_swapImage('Download','','../downloads/skins/old/images/download.gif',0)" onMouseOut="MM_swapImgRestore()"><img src="../downloads/skins/old/images/download.gif" alt="Download" name="Download" width="142" height="52" border="0"></a></p></td></tr> <tr> <td colspan="3"><center> Loads of mini games! </center> </td> </tr> </table> For my preloaded content but how do i get in the code? <?php function freeRTE_Preload($content) { // Strip newline characters. $content = str_replace(chr(10), " ", $content); $content = str_replace(chr(13), " ", $content); // Replace single quotes. $content = str_replace(chr(145), chr(39), $content); $content = str_replace(chr(146), chr(39), $content); // Return the result. return $content; } // Send the preloaded content to the function. $content = freeRTE_Preload("THIS IS WHERE I WANT TO PUT THE FIRST CODE I GAVE YOU") ?> Thankyou for the help
×
×
  • 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.