ok here is a break down of what i need to do:
- create a form in HTML that allows user to input values (done)
- create a PHP page that will echo the values to the screen per input. (done)
3)user inout # of rows and columns, user input starting values to display vertical in the columns (done) - depending on user input via radio buttons, the values will either increment or decrement ( unable to get to work)
this is where i am stuck at #4
<html>
<head>
<title>form</title>
<style type="text/css">
body {background-color:yellow}
</style>
</head>
<body>
<form name="input" action="formout.php" method="post">
number of rows: <input type="text" name="rows" />
number of cells: <input type="text" name="cells" /></br>
Beginning Number: <input type="text" name="beginning" />
Ending Number: <input type="text" name="ending" /><br />
Skip Number: <input type="text" name="skip" /><br />
<input type="submit" value="Submit" />
</form>
</body>
</html>
this is the html form minus the radio buttons to select either increment or decrement
[php]
<?php $rows_incoming=$_POST['rows'] ; $cells_incoming=$_POST['cells'] ; $count_start=$_POST['beginning']; $count_end=$_POST['ending']; $skip=$_POST['skip']; $across_start=$_POST['across']; $across_end=$_POST['toacross']; echo "";
for ($count=$count_start+$starting_integer ; $count<=$count_end+$starting_integer ; $count++) {
elseif
($count=$count_start+$starting_integer ; $count>=$count_end+$starting_integer ; $count--) {
else
($count%$skip)
echo " " . $count . " " ; } } echo " | ";
}
echo "
[/php]
here is the PHP i am trying to work with. NO database just using $post.