PDA

View Full Version : PHP form issue


Basura
01-30-2011, 10:00 AM
Can you find the error(s)? I am trying (with no result!) to pass 3 variables from Flash (8) form to a html form with the same text fields, through php (by Mac). All files are in the same server. I have limited experience in code, I came so far with the valuable help of a community member. Given that a (very) deadly deadline is on the gates, can you spare priceless time to help? Thank you for (even) reading this!

audiopro
02-04-2011, 04:02 PM
Where in your PHP script is input received?
I would have thought there would be a series of $_Get[]'s to receive the incoming data. It just appears to be a simple email script.

Basura
02-04-2011, 05:46 PM
Many thanks, audiopro!
Indeed, the php is from a simple email script. As a newcomer to php (alas other codes, too), was the best I could find to work with. Any corrections to this script or the correct substitute to it, are welcomed. If you can spare time. It will be a lifesaver to me. Thanks again!

audiopro
02-04-2011, 06:02 PM
Look for info on $_Get so you can get the vars from Flash into the pHP.
I usually use LoadVars for this kind of thing, your method maybe better but I tend to stick with what I know works.

Basura
02-04-2011, 06:36 PM
Thanks again, audiopro! I'll try. But I'm afraid that the problem is in passing the vars to the html file... and specifically to its corresponding text fields. Thanks for your time!

audiopro
02-04-2011, 08:38 PM
What HTML file?
I see no reference to one either in Flash or PHP.

Basura
02-05-2011, 09:51 AM
Sorry, audiopro, I was late to see your question... in Flash I sent (or so I intended) the Vars through the "Proceed to payment" button (VSrcv, etc - posting rules don't allow me to write the code, but you saw it), to php, through which to the "receiving" form, after it opens in a "_blank" window(?) Was it wrongly written? Is that what you mean?

audiopro
02-05-2011, 01:48 PM
I am not really sure what you are trying to do here.
It would help if you created a flow chart of what you are trying to achieve. That way, you could break down the individual sections of your project and test each one separately.

Trying to solve multiple issues all at once is almost impossible.

Basura
02-05-2011, 02:24 PM
Well, I have created an Online shop (in Flash 8 - maybe that was my mistake). Now I have to pass 3 (only) variables (Buyer's Name, Buyer's Email and the Total Amount) to another file, a (given by a Bank) html form file with the same Input text areas. (Then, the passed variables will be submitted to the Bank, but this is not a concern). In a nutshell: Flash -> php -> html form. So the .zip in attachment contains the basic structure of this. I thought that if I succeed to pass the variables in these, I will be able to do the same in my Online shop. Thanks again for your interest!

audiopro
02-05-2011, 02:47 PM
Well, I have created an Online shop (in Flash 8 - maybe that was my mistake).

Trying to create a webshop in Flash is not for the faint hearted as you introduce far too many complications.

I use Perl for that kind of task but PHP can do just as good a job. Flash is great for interactive animations etc. but as a webshop is mainly a series of HTML pages it is better handled by a server side script and a database.

I am not saying it is impossible in Flash but in my opinion there are much better ways of doing it and Flash offers no real advantages.

You are interfacing with a bank, is that the big bonus gang or Paypal?:)
Either way, I would simplify the task by taking Flash out of the equation.

Basura
02-05-2011, 08:18 PM
Well, audiopro, you just confirmed what I was most afraid to hear... and as I don't know Dreamweaver (or any other equivalent web authoring app) I think I'm nearing to a dead end. As for the Bank, it's not any well known Bank, and yes, I am trying the PayPal solution also (which by the way, seems more possible). So... Thank you very much for your concern, and if no other help comes my way in a few days, this will be the end of this road... Bye!