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

Re: passing variables

From: brew(at)theMode(dot)com
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: passing variables
Date: 2002-12-21 23:41:05
Message-ID: Pine.BSF.4.44.0212211835100.87427-100000@themode.com (view raw or flat)
Thread:
Lists: pgsql-novice
> I have two files below.  Why does the first file not pass
> values to the second file?

I suspect you are using the old style way to pass variables and in later
versions of PHP that has changed.  I'm not sure what version, I think it
changed in 7.1, 7.2 for sure.

You now find the passed variables in the $_REQUEST array, so if you wanted
to load another variable in the script you passed it to::

$func = $_REQUEST['func'];

That could be one problem.....

brew


> 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
>

 ==========================================================================
                  Strange Brew   (brew(at)theMode(dot)com)
     Check out my Musician's Online Database Exchange (The MODE Pages)
                        http://www.TheMode.com
 ==========================================================================





In response to

Responses

pgsql-novice by date

Next:From: Noel FauxDate: 2002-12-21 23:50:11
Subject: Re: problem with using fetch and a join.
Previous:From: Josh BerkusDate: 2002-12-21 19:22:18
Subject: HTML Mail, was: Table referenced by OID in a view?

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