List Info

Thread: HTML Paging




HTML Paging
country flaguser name
United States
2007-02-04 21:24:04
Hi All,

I am new this to group. I started working with perl cgi
scripting. I would
like to know,how we can do html  paging in perl. If you have
any links
please send it to me.

Regards
Shyam


[Non-text portions of this message have been removed]



Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

Re: HTML Paging
country flaguser name
United States
2007-02-05 13:40:02
>>>>> "Shyam" == Shyam S
<pl.shyamgmail.com> writes:

Shyam> I am new this to group. I started working with
perl cgi scripting. I would
Shyam> like to know,how we can do html  paging in perl.
If you have any links
Shyam> please send it to me.

Since "Paging" could mean any of ten things, how
about elaborating a bit?


-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. -
+1 503 777 0095
<merlynstonehenge.com> <URL:http://www.ston
ehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy,
etc. etc.
See PerlTraining.Stonehenge.com for onsite and
open-enrollment Perl training!


Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

Re: HTML Paging
country flaguser name
United States
2007-02-06 05:05:35
On 2/6/07, Randal L. Schwartz <merlynstonehenge.com> wrote:
>
> Shyam> I am new this to group. I started working
with perl cgi scripting.
> I would
> Shyam> like to know,how we can do html  paging in
perl. If you have any
> links
> Shyam> please send it to me.
>
> Since "Paging" could mean any of ten things,
how about elaborating a bit?
>

The thing that we get while searching in a google page.

I had a senario, I got lot of user list in database. I would
like to get
displayed each of them as a set of 10
 for eg: if Ihave total 100 list, then I must get 10 pages
containing 10
list each. So when I click on each number tab I could get
the relevent page.


[Non-text portions of this message have been removed]



Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

untainting and secure forms
country flaguser name
United States
2007-02-06 10:05:19
I an wanting to figure out how to create a safe form input
.. untainter.. i
guess.
below is some code... but I think that one thing I do not
have, that I may
need to have,
is something that is very specific for each $name and
$value.. so that if
$Quantity is always
a number and only so many charecter long.... but what about
messages from a
text box?
Are there any examples out there that are understandable to
the beginner?
Thanks
Lou

sub ParseInput
{
 pairs = split ( /&/, "$_[0]" );
 foreach $pair(pairs)
 {
  ( $name, $value ) = split ( /=/,"$pair");
###### $name/$value
  #changes plus sign to space
      $name =~ tr/+/ /;
      # converts hexadecimal charecters to Ascii characters
      $name =~
s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",
hex($1))/eg;
  #changes plus sign to space
      $value =~ tr/+/ /;
      # converts hexadecimal charecters to Ascii characters
      $value =~
s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",
hex($1))/eg;
  # chomps n's
      $value =~ s/n//g;
  # deletes embedded HTML comments - Security measure to
prevent subverting
server side includes
      $value =~ s/<!--(.|n)*-->//g;
      # Filters out  everything not in th is list
a-zA-Z0-9.-_ or a
space
      $value =~ s/[^a-z0-9.-_ ]//ig; # i=ignore case
x=ignore
whitespace g=all occurances
  # Check for email address. if an  appears, split and
reconstitiute as an
email address
  if ($value =~ m/*./) # email address else
  {
   #### This will untaint for -T
       $value =~ m/(S+)([w.-]+)/;
     $value = "$1$2";
  }
  if ($name eq "Email" )
  {
   if ($value =~ m/*./)
   {}
   else
   {
    FailPage("You entered $value<BR>
    The email address you entered<BR>does not look
like an email
address.<BR>
    You may only use numbers, letters, dashes<BR>and
underscores in your
email address.");
   }
  }
  # delete first dashes
  #while (m/-*/)
  while (substr($value,0,1) eq "-")
  {
   $value = substr($value,1,(length $value) - 1);
  }
  # delete commands system, exec & unlink
  if ($value =~ m/system/i || $value =~ m/exec/i || $value
=~ m/unlink/i)
  {
   FailPage("Unsafe verbage is being used.<BR>Do
not use the phrase
"$value"");
  }
  if ($name eq "PW" )
  {
   if ($value =~ s/[^a-z0-9-_]//ig)
   {}
   else
   {
    FailPage("You may only use numbers, letters,
dashes<BR>and underscores
in your password.");
   }
  }
######
  $Input{$name} = "$value";
##############



Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )