Re: passing variables

From: hodges(at)xprt(dot)net
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: passing variables
Date: 2002-12-22 16:35:23
Message-ID: 3E05794B.29987.39917E@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message brew 2002-12-22 17:52:36 passing variables
Previous Message hodges 2002-12-22 16:08:47 Re: passing variables