Recently Joe Sexton has released a 15 day fat loss challenge.

The first day consisted of Squats, Burpees and Press-ups. His challenge was to do 1 of each with 30secs rest, then 2 of each with 30sec rest, then 3 and so on. Until you couldn’t continue.

Below is a form for anyone interested in how many reps in total they achieved. Just put in the number you reached and it will do the rest!

[php]
// Default output value

$theoutput = “”;

// If the form is posted, grab those values and start script operations

if(@$_POST[‘psc’]) {

$input_one = $_POST[‘i1’];
$operation = ($input_one * ($input_one + 1)) / 2;
$operationtotal = $operation * 3;

// Trim these in case a space is added, strip_tags just in case

$input_one = trim(strip_tags($input_one));

// Make a reset link

$the_reset = ‘ Reset‘;

// In case a bot submits large values – people are limited by the input maxlengths

if (strlen($input_one) > 10 ) {
$theoutput = ‘

Error: Input limit exceeded.’.$the_reset.’

‘;
} else

// In case the inputs are left empty… can’t add air, right?

if( empty($input_one) ) {
$theoutput = ‘

Error: You must enter values.’.$the_reset.’

‘;
} else

// In case someone tries letter math or other stuff
// There is a better way to do this. If you know how, please email me at “mikecherim” at my green-beast.com domain

if( !preg_match(“([0-9])”, $input_one) || preg_match(“([a-z])i”, $input_one ) ) {
$theoutput = ‘

Error: Enter numbers only.’.$the_reset.’

‘;
}

// All’s well, let’s create an output string
else {
$theoutput = ”

Sets Input: “.”$input_one”.”
“.

Squat Total: “.”$operation”.

Burpee Total: “.”$operation”.

Pressup Total: “.”$operation”.”
“.

Total Reps: “.”$operationtotal”.”
“.
“$the_reset”.”

“;
}

}
?>

” method=”post”>

Calculate your Total Reps




[php]

Category:

General

Tags:

, , ,

Leave a Reply

Your email address will not be published.