Home php code that adds a number to the current number or do nothing at it
Reply: 0

php code that adds a number to the current number or do nothing at it

user962
1#
user962 Published in July 18, 2018, 10:19 pm

My question is very simple i'm programming some sort of an earning site and what i want to add to my php is:

when the user type the captcha wrong , number of user coins doesn't increase or decrease but when he types it right , it increases by 100

but the problem i faced is that however the user types it right it doesn't increase after the first time i mean it doesn't go to 200 or more .. and when he types it wrong it turns back into 0 again note: i'm using solve media for the captcha service

this is my code

$current n = 0;
if (!$solvemedia_response->is_valid) {
    print "<div class='alert alert-danger'> Captcha wrong try again!: ".$solvemedia_response->error."</div>";
    $currentn +=0;
    echo $currentn;
}else {
    print "<div class='alert alert-success'> 100 satoshis have been earned successfuly </div>";
    $currentn +=100;
    echo $currentn;
}
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.312169 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO