I made an html file named test1.htm and enter the bellow code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<form method="POST" action="test2.php">
Enter first value where to start : <input type="text" name="first"><br>
Enter second value where to end : <input type="text" name="second"><br>
<input type="submit" name="submit" value="Submit">
I dunno, post like this disturb me a bit , since you are not thinking at all, but just ask others to do the work for you.
anyway, here is the the way you set the start and end:
Modifying the previous answer:..
var $start = 3 ;
var $end = 30 ;
echo "Total of 1 to 10 is : $total";
Now...was that very difficult?
I set the variables as hard values, but you can also make a form with inputs for those variables, then pick them up with $_POST.
No, I am not going to write the form for you...