PDA

View Full Version : flash shopping cart to PHP3? HELP!!


hccfilms
01-14-2002, 11:30 AM
I am making a shopping cart in PHP.
I want to use flash to show the objects we sell.

In flash I have 3 textboxes with the variables:
brand
itemnr
size

I allso have a button to send the variables to the PHP script(cart.php3)

What script do I have to use on the movie and button to send theese variables to the PHP3 script??????

Please help!!!!

roele
01-14-2002, 01:09 PM
use the loadVariables("cart.php",this,"POST");
command to send the variables to php.

hccfilms
01-14-2002, 01:17 PM
Thats the only thing I have to do?
I dont have to write anything about wich variables to send from the movie to the script???

Zeek
01-14-2002, 10:34 PM
Originally posted by hccfilms
Thats the only thing I have to do?
I dont have to write anything about wich variables to send from the movie to the script???

That's an interesting question! I tried it, using:
loadVariables ("get.php3", 0, "GET");
and it worked. Is Flash sending all variables it has in the movie to the script? If so, is there another possibility to avoid sending specific variables, than sending them in another movie object?

Zeek

roele
01-15-2002, 07:42 AM
You can send specific vars by using "GET" then you have to
add the var like

loadVariables("cart.php?variable=value&variable2=value","","GET"

Zeek
01-16-2002, 04:39 PM
Thanx! I'll check out if that works...

Zeek