Forum Moderators: coopster
while ($row = mysql_fetch_array($query)) {echo "<p>",$row['first_name'], " ",$row['last_name'], "<br>", $row['address'], "<br>", $row['city'], ", ", $row['state_dc'], " ", $row['zip'], "<BR>", $row['email_address'], $row['website'], "<P>", "Dear Senator ", $row['last_name'], ",", "<P>"," $letter" ; }
If the letter they put in is less then a whole page, then next senators address is on page one and there for unprintable.
Is there a way to work around that?
1. User chooses the state
2. The data from the database is then put into an array in the session
3. The user is sent to the first letter.
4. The user performs whatever action they are trying to do on the first page.
5. Once they finish, that senator's info is removed from the session signifying that it's done.
6. The user is sent to the next letter.
7. etc.
Does this make sense?
Or, you could create a PDF file for each state, and send them that to print. The printed pages would look nicer, but it would take more work for you.
[w3.org...]
Maybe you could use css:
[w3.org...]