Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. When i have code tags in my bbcode how do i make it not parse the code, will htmlentities stop all code running thats entered?
  2. i dont think you need stripslashes , if you are using htmlentities, but use stripslashes for $_GET
  3. because it's not working as well as you thought, you should of been able to answer that your self.
  4. i say skip the tutorials , they arent always good, go learn php from w3schools and tizag, and some of PHP freaks tutorials, and you will be coding in no time.
  5. can you not make your own function using a reg-ex to check for certain chars.
  6. You can test offline you will need to install Apache i believe and PHP 5.0 (newest one). Is the problem fixed?
  7. can you show us your code
  8. Yer i mean make your own for everything , e.g. instead of mysql die statements use a custom message , etc. I know i some hosts stop errors, but if they do you should probs contact them or change host.
  9. I thought it was only ASP
  10. make it a button or call a function Btw if ($_POST["email"]<>'') should be if ($_POST["email"] != '"') <> is ASP for !=
  11. It is best to make your own error reporting for when it's live , so the errors are tidyer. And not just a white screen or something.
  12. Yer , soz didnt read the code just said how to do it , but everything like that should be in tags unless numeric , then it doesnt really matter.
  13. you dont need to do that bit , ini_set('error_reporting', E_ALL | E_STRICT); As far as i know you just do error_reporting(E_ALL);
  14. where you echo the textarea text do echo nl2br($textareatext);
  15. Try making all the pages UTF-8 , if not try re creating the files with UTF-8 if your using dreamweaver or created them using dreamweaver.
  16. I think now days js is more common on sites, and should be starting to be made compulsary. As there is web 3.0 (or something) upcoming and stuff like that. So i think Javascript should begin to be forced on users. But i wouldnt fully rely on it yet.
  17. Im in UK so it's different
  18. But LIKE , will bring it up as it contains the same first 4 numbers.
  19. i think you would need to use a mysql query with LIKE
  20. Some times i use something similar to fears, but just use a var instead of an array , and just echo it , also check if the var is present and if it is , dont run the query.
  21. One way i do it <?php if(isset($_POST['submit'])) { $username = $_POST['username']; $password = $_POST['password']; if (empty($username)) { echo "You must enter a username"; } elseif (empty($password)) { echo "You must enter a password"; } else { echo "You are logged in"; } } ?> <form method="post" action=""> <table> <tr> <td>Username:</td> <td><input name="username" type="text"></td> </tr> <tr> <td>Password:</td> <td><input name="password" type="password"></td> </tr> <tr> <td><input name="submit" type="submit" value="submit"></td> </tr> </table> </form> I think this will work
  22. Of course it will, you cant download .php files direct from the web
  23. I think we need to see something to do with session.php. Can we see line 915 - 917
  24. I believe this could be something to do with the PHP version on the server.
  25. a header can not be sent if there is anything outputted before it.
×
×
  • 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.