"divya" <> wrote in news:1109216654.641937.174730
@z14g2000cwz.googlegroups.com:
> This is the problem I am having:
> I have an index page where I obtain input from the user (for example
> their date of birth). This information is passed to Page2. Page2 has
> frames. Outside of the frames I can access the user's input. But
> within the frames I can't seem to be able to get the value.
You do not have a Perl question. You just do not know HTML & CGI. You
should direct HTML queries to
comp.infosystems.
www.authoring.html
and CGI queries to
comp.infosystems.
www.authoring.cgi
> my ($BDAY, $path_info, $script_name);
Declare variables in the smallest applicable scope.
> ##Obtaining value from the index page
> if ($q->param('birthday')) {
$q is not defined at this point.
use strict;
use warnings;
would have told you that.
> $BDAY = $q->param('birthday');
> }
>
> ##Creating frame
> $path_info = $q->path_info;
>
> ##Printing the fames
> if (!$path_info) {
> &print_frameset($BDAY);
Do you know the difference between
&print_frameset($BDAY)
and
print_frameset($BDAY)?
If you do not need the specific effects of using &print_frameset, then
you should not use it. See
perldoc perlsub
for more information.
Sinan