![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Expert Programmer
|
Something doesn't seem right here. I could be wrong, but I agree with whoever it was that said this could be a 'security risk'. Seems like people could easily cheat the system. What I dont get is that you make the game in java, pass the score to the php page (correct?), ask the user for there name, and then pass it to a server to enter in the highscores list.
So, you get the high score, and tack it to the url like this (as jimbo said) : http://someplace.com/aPage.php?score=10294059 (edited name out) You redirect them to the page right? where they enter there name. Its basicly the cod you have, with the highscore tacked on. http://someplace.com/aPage.php?score=10294059&name=you If you did that, using GET method, I could easily enter whatever I wanted. This is where I could be mistaken, but even if you used the POST method, Couldn't I still take your code, and throw in a high score? Couldn't you just copy the page, edit it a bit with a hiddentag for highscore, and still pass it along. Right or Wrong? Just my point of view. |
|
|
|
|
|
#22 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
I think Eric is trying to keep as much as possible in the applet, in which case you'd have to reverse-compile it to get the code (I know it can be done, but I've never looked into it and don't know what it takes). If it was just an HTML form, things would be a bit simpler to mess with.
|
|
|
|
|
|
#23 | |||
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
Quote:
Quote:
After everyones help (thanks you). I realized that maybe calling a javascript method (to send the data to the php site would be better). @Dawei, so the java Applet should call a javascript method (on the html page) which sends the data to my php server? Am I getting this right? Because PHP is the only server side programming I have access to. Quote:
__________________
Death smiles at us all. All a man can do is smile back. |
|||
|
|
|
|
|
#24 |
|
Expert Programmer
|
aha. Makes a little more sense now.
|
|
|
|
|
|
#25 |
|
Expert Programmer
|
|
|
|
|
|
|
#26 | |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
Quote:
THANKS so much!!!!! You saved me from learning Javascript. I guess Java can do pretty much anything ![]()
__________________
Death smiles at us all. All a man can do is smile back. |
|
|
|
|
|
|
#27 |
|
Expert Programmer
|
No problem.
I found the first link by typing "post java" in Google. ![]() |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|