Re: passing parameter to function
| From: | David Robley | Date: | Sat, 28 Feb 2004 05:59:16 +0000 |
| Subject: | Re: passing parameter to function | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33207@lists.php.net to get a copy of this message | ||
In article <403E553A.2060909@scd.ucar.edu>, rstaufer@scd.ucar.edu says...
> Hi,
>
> Say I have a script that knows the value of a variable $codename.
> The script contains a function that needs to know the value of $codename.
> What is the syntax for passing the parameter to the function?
>
> Example: the script knows that $codename = blah. The function has to
> pass 'blah' on to another script as a hidden value in a form using the
> POST method. The other script is not receiving the value of $codename.
>
> Thanks for any help.
> Robbie
>
>
There are some examples at http://www.php.net/manual/en/functions.php
which should give you some ideas.
--
Quod subigo farinam
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?