[SOLVED]in need of simple php code.
I need just a simple php code, its probly only a few lines of code.
anyways, here's what i need.
i need a php script in which i visit and it will INCREASE or DECREASE 1 number.
example URL would be.
site.com/example.php?type=inc
^^ that would increase my number by one
site.com/example.php?type=dec
^^ that would decrease my number by one.
i would prefer it be a POST instead of a GET request so this cannot be abused as much.
by default the number would be 0 of course.
i would like to be able to use this file so i can use it on a webpage to display the number.
so i could do something like
The number is: <? include(example.php) ?>
and would would display something like
The number is: 9
hopefully you understand what im saying.
I need just a simple php code, its probly only a few lines of code.
anyways, here's what i need.
i need a php script in which i visit and it will INCREASE or DECREASE 1 number.
example URL would be.
site.com/example.php?type=inc
^^ that would increase my number by one
site.com/example.php?type=dec
^^ that would decrease my number by one.
i would prefer it be a POST instead of a GET request so this cannot be abused as much.
by default the number would be 0 of course.
i would like to be able to use this file so i can use it on a webpage to display the number.
so i could do something like
The number is: <? include(example.php) ?>
and would would display something like
The number is: 9
hopefully you understand what im saying.
Last edited: