Skip site navigation (1) Skip section navigation (2)

Re: passing variables

From: hodges(at)xprt(dot)net
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: passing variables
Date: 2003-01-01 04:24:21
Message-ID: 3E11FCF5.19.45CE7D@localhost (view raw or flat)
Thread:
Lists: pgsql-novice
There was another problem with the library I am using,
session_register() no longer works.  Here is the fix

This seems to have fixed it (about line 300 in 
login.inc.php):


session_start();
if (! isset ($_SESSION['gUser']))
{$gUser = '';}
else {$gUser=$_SESSION['gUser'];}

Now the php_lib_logins_include library seems to work with current
php, postgresql, and redhat 8.

Thanks for all the help and suggestions.

Tom

On 22 Dec 2002 at 8:35, hodges(at)xprt(dot)net wrote:

> I found the answer to this.
> 
> Hi <?php echo $_POST["name"]; ?>.
> You are <?php echo $_POST["age"]; ?> years old.
> 
> >From the php documentation.  These are autoglobals.
> 
> There is a $_GET also.
> 
> Tom
> 
> On 21 Dec 2002 at 2:31, hodges(at)xprt(dot)net wrote:
> 
> > I have two files below.  Why does the first file not pass
> > values to the second file?
> > 
> > Tom
> > 
> > First file
> > <HTML><TITLE>Test form</TITLE>
> >   <body>Test Form<BR>
> >   <form method="POST" action="test_create_acct.php">
> >    <input type="text" name="func" value="strtoupper"><p>
> >    First Name: <br>
> >    <input type="text" name="fname"><p>
> >    <input type="submit" name="submit" value="submit">
> > </body></html>
> > 
> > 
> > file: test_create_acct.php
> > 
> > <?php
> > $res = $func($fname);
> > echo "$res";
> > ?>
> > 
> > Fatal error: Call to undefined function:  () in 
> > /var/www/html/php_lib_login_includes/ test_create_acct.php on line 2
> > 
> > 
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > message can get through to the mailing list cleanly
> > 
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
> 



In response to

Responses

pgsql-novice by date

Next:From: Reshat SabiqDate: 2003-01-01 06:16:19
Subject: localhost connects, same code on other host fails
Previous:From: Cheryl ThompsonDate: 2002-12-31 20:35:46
Subject: Re: Windows ODBC Driver?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group