it is possible with request method to calculate all numbers?

it is possible with request method to calculate all numbers?



In this form, here is my code:


<?php
// define variables and set to empty values
$number31=2.000;
$number32=493;
$number33=160;
$number34=333;
$number35=1.667;
$number36=1.667;
$number37=467;
$number38=133;
$number39=333;
$number40=1.333;
$number41=1.333;
$number42=440;
$number43=107;
$number44=333;
$number45=1.000;
$number46=1.000;
$number47=413;
$number48=80;
$number49=333;
$number50=667;
$number51=667;
$number52=387;
$number53=53;
$number54=333;
$number55=333;
$number56=333;
$number57=360;
$number58=27;
$number59=333;
$number60=0;

if ($_SERVER["REQUEST_METHOD"] == "POST")
$number31 = test_input($_POST[""]);

switch ($number31)
case 2.000:
print "<h2>complete all the table!</h2>";
echo "<p>2.000, correct

$number32 = test_input($_POST[""]);

switch ($number32)
case 493:
echo "

$number33 = test_input($_POST[""]);

switch ($number33)
case 160:
echo "

$number34 = test_input($_POST[""]);

switch ($number34) 333, correct

$number35 = test_input($_POST[""]);

switch ($number35) 1.667, correct</p>-
$number36 = test_input($_POST[""]);
switch ($number36) ";
break;




$number37 = test_input($_POST[""]);

switch ($number37) ";
break;



$number38 = test_input($_POST[""]);

switch ($number38)
case 133:
echo "

$number39 = test_input($_POST[""]);

switch ($number39) 333, correct

$number40 = test_input($_POST[""]);

switch ($number40) ";
break;



$number41 = test_input($_POST[""]);

switch ($number41)
case 1.333:
echo "

$number42 = test_input($_POST[""]);

switch ($number42) 440, correct

$number43 = test_input($_POST[""]);

switch ($number43) ";
break;



$number44 = test_input($_POST[""]);

switch ($number44) 333, correct

$number45 = test_input($_POST[""]);

switch ($number45) ";
break;


$number46 = test_input($_POST[""]);

switch ($number46) -<p>1.000, correct

$number47 = test_input($_POST[""]);

switch ($number47) 413, correct

$number48 = test_input($_POST[""]);

switch ($number48) ";
break;



$number49 = test_input($_POST[""]);

switch ($number49) 333, correct

$number50 = test_input($_POST[""]);

switch ($number50) ";
break;


$number51 = test_input($_POST[""]);

switch ($number51) <p>667, correct

$number52 = test_input($_POST[""]);

switch ($number52)
case 387:
echo "

$number53 = test_input($_POST[""]);

switch ($number53) 53, correct

$number54 = test_input($_POST[""]);

switch ($number54) 333, correct

$number55 = test_input($_POST[""]);

switch ($number55)
case 333:
echo "
$number56 = test_input($_POST[""]);

switch ($number56) <p>333, correct
$number57 = test_input($_POST[""]);

switch ($number57)
case 360:
echo "

$number58 = test_input($_POST[""]);

switch ($number58) ";
break;



$number59 = test_input($_POST[""]);

switch ($number59) 333, correct

$number60 = test_input($_POST[""]);

switch ($number60) 0, correct</p>



function test_input($data)
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;


?>



I try to make a calculation about loan amortization but I encounter two problems: the page does not appear in the browser but only the code, what may cause? is there a code that it can calculate all
$numbers(subtraction, addition, subtraction, multiplication)?
In more detail I have put 30 $numbers for each one case in order to find out if it is correct, I want to fill in all the numbers, correct to get a confirmation. Thanks in advance.


$numbers


case





Can you provide the HTML as well?
– Jon Le
Aug 25 at 20:21





How are you accessing the file? Is the file extension .PHP and are you accessing it through a web server that has PHP installed and active?
– Dave
Aug 25 at 20:39





of course, see here my link: [codepen.io/mariapesm/pen/JaGZyE?editors=1010]
– mpes.
Aug 25 at 21:21





please sorry if I did not put the whole code in the previous comment when you ask me to provide html.
– mpes.
Aug 25 at 21:26





@Dave yes my file is extension.PHP but it doesn't work on google browser only on Firefox also I notice that I had made a small mistake with the document root but now work fine.
– mpes.
Aug 26 at 13:46









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế