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.
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...
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...
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.
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.
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...
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: "...