getURL and php
- Started
- Last post
- 4 Responses
- wade
I'm trying to open a new window and POST the variables to a php script but it's not working. I think my sytax is just a little off.
- deplifer0
Enter response:
Okey, I think your problem is that your variables are $_GET not $_POST since you are sending them direct trough the url.$var = $_GET['var'];
$var = $_POST['var'];you can access thecurrent url trough $_SERVER['PHP_SELF'];
- wade0
I'm not sure I understand. POST is for long variable strings and GET is for shorter strings, correct?
I'm just trying to figure out how to use getURL in Flash to open a new window and then use the variables it got from the Flash in a mail script. My php is fine, it's the Flash syntax that is causing problems.
Normal getURL:
getURL (url, window, GET/POST)How do I the above while also including a JavaScript open window command?
- deplifer0
Enter response:
POST you dont see the variables displayed in the urlGET you will see the variables displayed in the url
POST/GET are 2 different
scopesDont if you solved the problem.
buthttp://www.macromedia.com/suppor…
http://www.macromedia.com/suppor…from the second link I read
you will have to it this way
getUrl(url,"_blank");
url to display
_blank new window
- easy_target0
maybe this will help