0

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!

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by codejoust
0

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();}
0

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();}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.