3

I was wondering if it was possible to send information from a java applet to a PHP page (and in the long run, a mysql database) on the click of a button (within the java applet).
Of course, if it's easier to just incorporate the jar file instead of an applet, that's also a possibility, but I just don't know how to do that...
Any ideas?

1 Answer 1

2

Yes, you can do that. You'll need to grant the Applet permissions to access the network though. Here's an example.

Sign up to request clarification or add additional context in comments.

3 Comments

By default applets have permission to connect to (and receive connections from) the host they were downloaded from (a Same Origin Policy).
@TomHawtin-tackline: yes, true. But I'm not sure if that's the case here.
How do I access the data sent from the applet from the php?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.