hi all
i have a very urgent question
i want to write a function that i can use
what i want to do is something like that:

<?php
$a=_GET["a"];
function radom()
{
$x=rand(0,4);
echo "&b=$x";
}

if($a==1)
{random();
}

the problem is that it doesnt work...
i'm getting var a from an actionscript.
and my echo should go back to my flash action script.
if any 1 can help me fix this!
thank!

Some buggy, but simple code there...
I'll clean it up though...

<?php
$a=$_GET["a"];
function random()
{
$x=rand(0,4);
echo "&b=$x";
}

if($a==1)
{random();}

Some buggy, but simple code there...
I'll clean it up though...

<?php
$a=$_GET["a"];
function random()
{
$x=rand(0,4);
echo "&b=$x";
}

if($a==1)
{random();}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.