CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [terrykhatri531] How to implement a checkbox that will send data to db: Edit Log



terrykhatri531
User

Jul 15, 2014, 5:04 AM


Views: 31529
Re: [terrykhatri531] How to implement a checkbox that will send data to db

Hi Chris,

I have done pagination but I want to link the page numbers to css stylesheet so it may look pretty.

Here is my code that generates simple page number links :


Code
  
for (my $i=0;$i<$pagenum;$i++)
{
print "<a href='vieword2.pl?page=$i'>$i</a> ";
}


So as to link the numbers to css stylesheet I have changed the above code to the following but what is happening now is its creating page links far far below down the one page number to another in vertical order, in other words its not stacking up the page numbers side by side like 1 2 3 4 ... in horizontal order instead its doing it like this vertically:

1

then a big space gape far below down the page then next page number

2

and so on.


Code
  
for (my $i=0;$i<$pagenum;$i++)
{
print"<ul class=\"tsc_pagination tsc_paginationA tsc_paginationA08\">
<li><a href='vieword2.pl?page=$i'>$i</a></li></ul>";
}



The following dummy code generates the page numbers side by side


Code
  
print"<ul class=\"tsc_pagination tsc_paginationA tsc_paginationA08\">
<li><a href=\"#\">1</a></li>
<li><a href=\"#\">2</a></li>
<li><a href=\"#\" class=\"current\">3</a></li>
<li><a href=\"#\">4</a></li>
<li><a href=\"#\">5</a></li></ul>";


Since you are so experienced what do you think where the problem is.

Many many thanks is advance.

Rgds.

Terry






(This post was edited by terrykhatri531 on Jul 15, 2014, 5:25 AM)


Edit Log:
Post edited by terrykhatri531 (User) on Jul 15, 2014, 5:21 AM
Post edited by terrykhatri531 (User) on Jul 15, 2014, 5:25 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives