Jump to content

crackpanda

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Everything posted by crackpanda

  1. That worked If you look carefully the previous thread asked for a single space. I need to not limit the spaces in my case. Thank you for the expression, epic.
  2. I need a regex for letters, spaces, and a comma: "toronto, ontario" == true "abc, 123, abc" == false "asd. #!@" == false Does anyone know how to form the pattern for this?
  3. I'm starting a new topic because i need something different now.
  4. Thanks for helping Joe, that code was close, it still lets in numbers in something like this "abc, 123, abc". I need letters, spaces, and one comma. So something like "toronto, ontario" would work.
  5. I also now need one for: letters, spaces, and one comma I'm still trying to learn how to form these patterns..
  6. As the subject implies, i need a regex for letters, one comma, and one space, does anyone know the solution? Thank you for your time,
  7. Like this: http://mysite/thing => http://mysite/thing.php & http://mysite/thing/key => http://mysite/thing.php?k=key
  8. Hey, thank you for taking time to read this and for possibly helping me sort this. So I'm trying to make it so: http://mysite.com/thing/key is rewritten as: http://mysite.com/thing.php?k=key while keeping a general rule for: http://mysite.com/thing being written to: http://mysite.com/thing.php Please help thank you.
  9. So i am getting an error when i try to use move_uploaded_file(). The function is located in a file that is included into the main page. I need the function's destination to be two folders out of its current location (i need it to start from the root folder). This is the error: failed to open stream: No such file or directory.
  10. Hello, could someone please assist me by showing how to put together a preg_match statement for letters and numbers only, no spaces?
  11. Hey, i have a problem with a captcha, i have been trying to solve this since last nite and i still haven't fixed it, its getting me pretty frustrated.. :-\ I'm using this script: http://www.white-hat-web-design.co.uk/articles/php-captcha.php I have the captcha image working, but the session is not working properly. I removed session_start(); because i have it in my root file, and i renamed; $_SESSION['security_code'] = $code; to $_SESSION["captcha"]=$code; Another thing to note, is i named my session so for example, my root file has session_name("mysession"); Any ideas on why $_SESSION["captcha"]=$code; does not work? Please help
  12. The in_array() function works perfectly, thank you very much!
  13. Hello. So what i need to do is check if an array contains a specific value, how can this be done? ??? For example, im looking for "Brick Wall" in the array $walls[].
  14. Hello, i have a series of check boxes with the same name="" tag (example[]), and i want to count how many of these check boxes have been selected. Can anyone help me construct such a loop in a very simple/clean way? I want to see if more than 2 check boxes have been selected.
  15. That is godly, thank you very much, that was exactly the puzzle piece i needed.
  16. I was looking for something more simple such as an ereg statement, i just can't figure out how to set it up myself. I dont want to replace anything, i just want a true or false on a string. For example: im expecting: hello hello or: Hello Hello but i want to give an error if something such as: Hello2 Hello or Hello! is given. The code you gave me over-complicates the result, but thank you for helping.
  17. Hey, could someone help me put together a statement to check a string for letters and spaces and return true or false (i want see if the string has letters and spaces, which would be normal, or if it also contains numbers and these guys !@#$^& e.t.c, which would be unwanted) - Thank you.
×
×
  • 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.