Recent content by lszanto

  1. L

    Unsuspension?

    I've not been on the forums for a while, am I able to get my site put back up if I start posting again?
  2. L

    form validation w/Javascript

    I'm sure you proberly know this but i'm just checking, make sure you have other validation on your website and don't rely on javascript. You can easily get around it and/or simply disable it.
  3. L

    include function

    If the include() function is disabled you could possibly use the require() or require_once() function? Just a suggestion..
  4. L

    Type of python usable?

    Thanks, would you happen to know what kind of time period it will be until this happens? thanks, Luke
  5. L

    Anybody need a little bit of quick php done?

    Nothing really, if you want to give something in return that is also fine. And I can help witih a login form, do you need it to be connected to a user database? What page will it need to rediect your site to once logged in? And lastly i'm assuming you would like this done in php, are you going...
  6. L

    Auto down counter

    Have you created the file 'num.inc' and made the chmod 755? Cause its acting as if the file does not exist.
  7. L

    Auto down counter

    FormToEmail.php - <?php //One less stock function. function onelessstock() { //Set file. $file = "num.inc"; //Make file handle, read. $fh = fopen($file, "r"); //Read file. $num = fread($fh, filesize($file)); //Close file. fclose($fh)...
  8. L

    Auto down counter

    Ok I think I finally got this worked out, please tell me if anything goes wrong so I can fix it, your files are below and you will have to create a file called 'num.inc' with the number of stock you have in the file and upload it. The file 'num.inc' will also have to be chmodded to 755 so that...
  9. L

    Auto down counter

    To do that you'll have to make the page a .php page or use ajax to make the request to get the value, are you willing to change the file from buy.html to buy.php or would you prefer that it stays .html.
  10. L

    Anybody need a little bit of quick php done?

    I'm rather bored right now and just wanted to know if anybody needs anything quick/simple done in php cause i'm up for a bit of a challenge and am in a programming mood.
  11. L

    Auto down counter

    Ah, beat me to it, I don't think this will quite work I may be wrong though, becauseyou open $stock with fgets() but you never turn it into an integer so you can't run $stock--; first you would need a line like: $stock = (int) $stock; That would make the $stock into an integer and it can be...
  12. L

    Auto down counter

    Okie, thanks for that i'll see what I can do.
  13. L

    Auto down counter

    You said once the contact has been sent they are redirected to another page, what is this page?
  14. L

    PHP message upload.

    Thankyou, glad I could help.
  15. L

    PHP message upload.

    Ah man i'm dumb, I think I found it, I just misspelt a word. <?php //Email function. function send_email($name, $comment) { //Set vars. $to = "person@email.com"; $subject = "Image uploaded by " . $name; $message = "An image has been uploaded, the details are below.\n\nName: "...
Top