----- Original Message ----- From: "shaggy2dope2126" So heres the problem. the form works in three parts, all of the them except for the last part where the mysql queries are ran. The variables of starting and ending number are not being sent. i have tried both methods of post and get with the second form and it still will not work. i tried changing the variable in the for loop form $x to $y and still nothing. the first for loop using the $_POST variables works perfect. and i copied the code to the second for loop and couldn't get it to function. Any one got any ideas as to why?
<snip> ------------------------------- Your form action is POST - <form ... action="POST"... then you have echo $_GET['startingnumber'];//not registering echo $_GET['endingnumber'];//not registering also - for($X= $_POST['startingnumber']; $X<($_POST['startingnumber'] + $_POST['endingnumber']); $X++) Shouldn't this be - for($X = $_POST['startingnumber']; $X < $_POST['endingnumber'] + 1; $X++) or for($X = $_POST['startingnumber']; $X <= $_POST['endingnumber']; $X++) also elseif(!$submit2) should this be ? elseif(!isset($submit2))