Thanks guys for all your help.
I've managed to get it working.
I tried calling the function from within the file and it turned out
that somehow I had messed up my include statement.
I understood about adding argument variables to the syntax, but I
needed to add a text argument as I couldn't think o
You're declaring your function wrong.
You're doing:
function (function_name)
You should be doing
function function_name($arg1, $arg2, $arg3) // with as many comma
seperated arguments as you want.
or if you don“t want to pass any arguments
function function_name()
Try this out:
function ma
ge to the user saying that it already exists and to try again.
Did that make a bit more sense about how variables are passed between
functions? It's all in the call and definition.
Andrew Darrow
Kronos1 Productions
www.pudlz.com
- Original Message -----
From: "Tom Chubb"
I am trying to start using functions on some pages to layout a header
row in a table.
I have defined the function as below...
What I can't seem to work out is a way to set the text. Here I've
echoed the $tablehead value, but it I was t
You don't need the () around print.
print testfunction($var1, $var2, $var3, $var4);
Jason
On Wed, 2002-11-20 at 17:48, Tracy Finifter Rotton wrote:
> Try:
>
> $meat = testfunction ($var1, $var2, $var3, $var4);
> echo $meat;
>
>
> Or, alternatively,
>
> print (testfunction ($var1, $var2, $va
Try:
$meat = testfunction ($var1, $var2, $var3, $var4);
echo $meat;
Or, alternatively,
print (testfunction ($var1, $var2, $var3, $var4));
hope this helps.
--t
On 11/20/02 8:40 PM, "Beauford 2002" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have form that a user would input information and that
Beauford 2002 wrote:
Hi,
I have form that a user would input information and that info is sent to
a function, but I need to be able to return a result of this function
and is where I am having a problem.
For example:
testfunction($var1, $var2, $var3, $var4); //the form fills these
values.
e
echo testfunction($var1, $var2, $var3, $var4);
Or if you need to do something else with the value before echo()ing it:
$meat = testfunction($var1, $var2, $var3, $var4);
//Do something with $meat
Beauford 2002 wrote:
Hi,
I have form that a user would input information and that info is sent to
Hi,
I have form that a user would input information and that info is sent to
a function, but I need to be able to return a result of this function
and is where I am having a problem.
For example:
testfunction($var1, $var2, $var3, $var4); //the form fills these
values.
echo $meat;
function te
> I need some help with functions. Does anyone know of a good place to learn
> about functions? Will someone be willing to teach me what I need to know
about
> functions in PHP? Thank you,
Here's a really simple example:
\n";
// build up some more html
$html .= "\$global_var + \$local_var + \$p
Hello,
I need some help with functions. Does anyone know of a good place to learn
about functions? Will someone be willing to teach me what I need to know about
functions in PHP? Thank you,
-Sean Kennedy
-http://www.gdesigns.vcn.com
--
PHP General Mailing List (http://www.php.net/)
To unsub
11 matches
Mail list logo