File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Java Applet Logon Post to PHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Java Applet Logon Post to PHP" Watch "Java Applet Logon Post to PHP" New topic
Author

Java Applet Logon Post to PHP

michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
I have a question about java Applets and PHP.

I am working on an java applet logon that post the ver and pid to php for processing, but am having problem setting it up to work properly so i need Help... I pastee the code below
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
So... what exactly does this code do now, and how, exactly, does that differ from what you'd like it do do?

I'm going to add code tags to your previous posts, which should make them much easier to read: UseCodeTags


Ping & DNS - updated with new look and Ping home screen widget
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
the first code above is named LoginForm.java and the second is AuthenticatingFrame.java i dont know how to compile the below code to correspond with the logon applet, i want the applet to execute action that on click of the Letmein jbuton that it should post the data to http://mypage.com/proeed.php or is possible that the proeed.php will be in a package container.. thank you..
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
PHP Page getting posted to: proeed.php

michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
There seems to be code that posts to a PHP page - does that not work? If not, what does it do? At which point do its actions deviate from what you expected it to do? Keep in mind that we don't have the benefit of seeing the code run, so we don't know how it behaves.
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
Please am new to the java applet and all i am trying to achieve is to have my login page run on java applet and on click the Ver and pid posted to php for processing.. please help
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
People here will be happy to help, but you need to take the time to describe your problem. So far you posted a lot of code which at a cursory glance seems to implement what you intend to do. If it doesn't actually do that then you need to tell us what exactly the problem is. Presumably you've tried something and it didn't work - what did you try, and what were the results? TellTheDetails.
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
ok thank you for your support well i decide to use java applet as my logon page in html frame format and like i said am new to java applet, i want a java applet that will post its input data to php for processing if its not valid then the php version will respond.. i am only able to design the applet but i am dont know how to instruct the text to be posted to the php server side.. i will be happy if you or someone can really help me out to have this acompleted i have been trying tirelessly..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
Yes, that's what I understood you were trying to do. And as I said, the code looks like that's what it should do. But apparently it's not what it actually does, or you wouldn't be posting here. So what does it do? Keep in mind that we don't see what you see on your monitor, so we have no idea what's going on.
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
check this out and the error i got in building this application.. run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - <anonymous form.conti$5> is not abstract and does not override abstract method run() in java.lang.Runnable
at form.conti.main(conti.java:186)
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13
i am calling for help on this applet, besides i find out that java applet is so unique and with just basic knowledge of it, designing the applet is simple but telling it how to behave i think is the problem... i have been working on this for some days now, i have reason to believe that there are greenhorns here who will be happy to help me out... and i have found out what is missing in the programme is the class for behavior . Example i have made this logon form.. please let someone help me workout the class needed to make it work to my definition... having the ver and pid posted to http://mypage.com/process.php thanks awaiting response
michael dominic
Greenhorn

Joined: Feb 02, 2013
Posts: 13

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Applet Logon Post to PHP
 
Similar Threads
Get Results from a PHP Query
Java Class call on PHP script
Java Applet unable to use a PHP page to store a cookie
Java v/s PHP
Multiple file upload using java applet