I dont think I put the right thing in the subject field, but I couldnt think of anything better.
Ok, first. I have two variables(variable1 and variable2) made inside a Flash movie, and a button to open a .php file. And I know by simply putting <?php echo $variable1; ?>, it will show variable1. (also works with variable2)
Now my question is this; How do I check if variable2 is a specific value , and if its true change variable1 to a specific value. This is what I tried first;
if (variable2 == "correct") {
variable1 = "youdidit"
}
Next I tried;
if ($variable2 == "correct") {
$variable1 = "youdidit"
}
Then;
if (<?php echo $variable2; ?> == "correct") {
<?php echo $variable1; ?> = "youdidit"
}
Im new to (if) and (else) commands outside of Flash. I thought it was close, but still coudnt figure it out. I still need to add another (else if) to check if variable2 is another value, to then change variable1 to another value also.
Maybe this will clarify whats going on. I have a webpage with a "sign-in screen" made from Flash and html, with a name and password field to fill out (you only need to fill out the password if you have one). The name field being variable1 and the password field being variable2, both being passed to the php file when you hit the enter button. First I wanted it so you only had to fill out the password if your a member, and it will make the name variable whatever name goes with the password. And second, I wanted it if the visitor didnt fill out the name field, it would automatically make the name (variable1) "Visitor".
Please help me. I know I make it sound confusing, sorry.
Thanks, bye.