PDA

View Full Version : how to use php variables


Poison Girl
08-14-2004, 01:37 PM
hi, would someone be so kind as to help me with my small scripting problem please. i followed the intermediate flash php formail tutorial and everything works, but the example uses just 3 variables. i'd like to know how to write the script for additional variables? please help.....

snapple
08-14-2004, 10:47 PM
Poison Girl,

I don't really understand. Surely, you just add them. If your from requires additional data to be sent to a php script, then just create the extra textfield, write the extra varibale in Flash using the loadVars() object, create the extra varibale in your 'senbdMail' php script - and it should work.

Apologies if i have missed the mark.

Regards, snapple :)

Poison Girl
08-15-2004, 05:09 AM
Snapple, thanks v much for your reply.

"write the extra varibale in Flash using the loadVars() object, create the extra varibale in your 'senbdMail' php script"

By loadVars() object, do u mean the var field in Properties..? :confused:

And by creating the extra variable in my php script, do u mean just adding $mynewvariable (i'm using php 3) in the line ? If not how do I write the code for stating/defining the variables, what is the syntax? Are these variables predefined or custom variables?

CyanBlue
08-15-2004, 05:50 AM
Here is something that's very similar to what you are asking...
http://www.kirupaforum.com/forums/showthread.php?t=66249

and here is the LoadVars tutorial...
http://www.actionscript.org/tutorials/beginner/loadVariables_and_loadVars/index.shtml

(I hope this doesn't sound harsh cuz that's the last thing I want to show... :))
The reason why people created tutorials is basically because they want the reader understand everything that is needed to achieve the goal of the tutorial example... But it looks like you don't really understand why things are laid out in the tutorial, yet you want to add modification... I suggest you to go over the tutorial again till you understand the logic behind the tutorial and then attack the next problem... Of course, you are more than welcome to ask questions regarding the tutorial which you can find the specific forum area for the given tutorial in this site... :)

Poison Girl
08-16-2004, 05:21 AM
Excuse me Mr CyanBlue, I had gone over the tutorial many times before I decided to make my posts. I did try to understand everything needed to achieve the goal of the tutorial. I want to ask you, have you actually looked at the tutorial? From my understanding, there is nothing there explaining LoadVars and there is nothing on writing to define variables. The php script with the variables is only one line of mail function coding. I looked at the Kirupa forum msgs which you referred me to and got my problem solved beautifully. And this without at all having to understand LoadVars. I only had to look at the few lines of variable statements, which were exactly what I was begging for here.

>>Of course, you are more than welcome to ask questions regarding the tutorial

Exactly what I was doing?

>>which you can find the specific forum area for the given tutorial in this site...

If you look at the particular forum area for the tutorial, you will see my days old posts there. I had posted there and waited days to no reply before I made my post in this 'Server-side Scripting' section.

So I gotta thank you for pointing me to Kirupa but I don't accept your comments.

CyanBlue
08-16-2004, 11:41 AM
As I was saying earlier, I never meant to give you anything negative when I said that, but I guess it did... I was simply thing to give you right way to solve your problem... :(
Sorry for making you feel bad... and I promise you that it won't happen again... Happy Flashing... :)