We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › PHP with Processing interactive object
Page Index Toggle Pages: 1
PHP with Processing interactive object? (Read 291 times)
PHP with Processing interactive object?
Aug 18th, 2006, 7:04pm
 
I have a PHP form that is filled out (text/combo boxes) and when a submit button is pressed a second PHP page processes the results (using $_POST) and updates a MYSQL database.

What I would like to do is enhance the PHP form with Processing's advanced visual options   so that the user can select certain areas on a object instead of selecting from a drop-down box.  ie  Select 1 - 9 that is situated around a circle.

What I'm not sure of is how do I get PHP's $_POST or $_GET option to get values from Processing applet.  Any insight would be appreciated.
Re: PHP with Processing interactive object?
Reply #1 - Aug 19th, 2006, 12:51pm
 
In the applet you can do:

String[] reuslt=open("http://www.mysite.com/php/page2.php?choice1=foo&choice2=bar");

Then php's $_GET["choice1"] will be "foo" etc. You can then checkthe value of result in the applet to see what the php page said, e.g. "Succesfully done" or whatever.
Page Index Toggle Pages: 1