Here's the situation....
I have my button which links to a page...
the code in flash is :
while in PHP is :
The problem is that it does not work sometimes....I wonder if this has something to do with the if (isset....) thing coz when I erase it...the code works smoothly. But I have to put the if (isset...) coz i want the user to click the button before executing the code inside the if (isset...)...
Is there other way to do this other than if (isset....)
I have my button which links to a page...
the code in flash is :
| Quote: |
| on (press){
var userorig = _global.userorig; loadVariableNum ("http://localhost/index.html", 0 , "POST"); getUrl("http://localhost/index.html","_blank"); } |
while in PHP is :
| Quote: |
| <?
$username = $HTTP_POST_VARS['userorig']; mysqlpconnect.....etc. etc. if (isset($_POST['create'])) ---->this is true if create button(code found at the later part of the code) is click. { etc. etc.. |
The problem is that it does not work sometimes....I wonder if this has something to do with the if (isset....) thing coz when I erase it...the code works smoothly. But I have to put the if (isset...) coz i want the user to click the button before executing the code inside the if (isset...)...
Is there other way to do this other than if (isset....)
