Current location: Hot Scripts Forums » Programming Languages » ASP » help page break within the loop


help page break within the loop

Reply
  #1 (permalink)  
Old 12-12-04, 07:10 PM
mathfxr mathfxr is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
help page break within the loop

i wonder someone could teach me how to make page break in a while loop so it will display the data in diff page in print preview.plz help me
Reply With Quote
  #2 (permalink)  
Old 12-12-04, 11:58 PM
irfanbaba's Avatar
irfanbaba irfanbaba is offline
Newbie Coder
 
Join Date: Dec 2004
Location: Karachi, Pakistan
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

Hi,

Review following code.

<html>
<head>
<title>CSS - Page Break</title>
<body bgcolor="#FFFFFF">
<center>
Page 1
<br style="page-break-before:always;">
Page 2
<br style="page-break-after:always;">
Page 3
<p>
Use print preview on your browser to see how<br>
this page would print out to three pages
</center>
</body>
</html>

hope this may be Help you.
__________________
Web Programmer
web: http://www.netxs.com.pk
email: irfanmail@gmail.com
msn : irfanbaba@hotmail.com
Reply With Quote
  #3 (permalink)  
Old 12-13-04, 01:29 AM
mathfxr mathfxr is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
not work

the coding that u show cannot being use while in a loop.other suggestion???
Reply With Quote
  #4 (permalink)  
Old 12-13-04, 01:40 AM
irfanbaba's Avatar
irfanbaba irfanbaba is offline
Newbie Coder
 
Join Date: Dec 2004
Location: Karachi, Pakistan
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up

PHP Code:

<?php


$i 
1;
while (
$i <= 10) {

echo 
"<p>";
echo 
"Page 1";
echo 
"<br style=\"page-break-before:always\">";
echo 
"Name = Irfan Ansari";
echo 
"Order Number= Example22154";
echo 
"email= [email]irfanbaba@hotmail.com[/email]";
echo 
"</p>";
$i++;  
}

?>
this may help.
__________________
Web Programmer
web: http://www.netxs.com.pk
email: irfanmail@gmail.com
msn : irfanbaba@hotmail.com
Reply With Quote
  #5 (permalink)  
Old 12-13-04, 04:40 PM
MadDog MadDog is offline
Code Master
 
Join Date: Aug 2003
Posts: 935
Thanks: 0
Thanked 0 Times in 0 Posts
this is an asp forum, not a php forum
__________________
Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile

http://www.iportalx.net an easy ASP portal system.
Reply With Quote
  #6 (permalink)  
Old 12-14-04, 01:01 AM
mathfxr mathfxr is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
not using php

the coding its for php but im using asp
so anyone who familiar with asp help me
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 10:15 AM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM
Declared Functions skipper23 PHP 4 12-17-03 10:06 AM
index page not showing up skipper23 PHP 3 12-15-03 01:10 PM


All times are GMT -5. The time now is 03:11 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.