ok that was perfect, ive got the form working correctly, but used
for($x=1;$x<$totaldays;$x++){
echo "Customers for Day ".$x.": <input type='text' name='customers".$x."'>";
echo"Total for Day ".$x.": <input type='text' name='total".$x."'>";
}
as it was putting the first day as day 0.
Now having gone further i am having a little trouble with seperating each days information later.
So far i have
foreach( $_POST AS $title => $value ){
$$title = stripslashes( $value );
echo"$$title : $value<br>";
}
to echo out all of the info, however, id like to seperate each day of info with a horizontal line. So that each submission can be checked before submitting to database.
Id also like to display more readable categories($$title) for each...
re...
Instead of
customers1 : (whatever theyve put in)
total1 : (whatever theyve putin)
id like to have
Day 1 of 2
Customers : (whatever they put in)
Total : (whatever they put in)
Any ideas? Can i create each day as an array, and then have another sub-array for each of the pieces of information they submit? Rather than just a simple array for the whole lot?
As always thanks for all help in advance.