DHTML Trouble please help

This is a discussion on DHTML Trouble please help within the PHP forums in Programming Languages category; You could modify near line 575 of tetrisIE.html: function Show_Score() { _block.score.document.forms[0].High_Score.value = high_score; _block.score.document.forms[0].Game_Score.value = game_score; } to something similar to: function Show_Score() { document.images['hiddenimage'].src="script.php?score="+game_score; _block.score.document.forms[0].High_Score.value = high_score; _block.score.document.forms[0].Game_Score.value = game_score; } Then create a file script.php that inputs the value of $score into a database. This would be easy to cheat though, is that a problem? If you really need help with this feel free to contact me off list. -Rob Z. http://www.zwink.net/daid.php -----Original Message----- From: Jennifer Downey [mailto:jendowney @ attbi.com] Sent: Saturday, March 13, 2010 10:16 PM To: php-general@lists.php.net Subject: [php] DHTML Trouble please help Hi all, ...

Go Back   Application Development Forum > Programming Languages > PHP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 03-14-2002, 08:53 AM
Robert V. Zwink
Guest
 
Default RE: [PHP] DHTML Trouble please help

You could modify near line 575 of tetrisIE.html:

function Show_Score() {
_block.score.document.forms[0].High_Score.value = high_score;
_block.score.document.forms[0].Game_Score.value = game_score;
}

to something similar to:

function Show_Score() {
document.images['hiddenimage'].src="script.php?score="+game_score;
_block.score.document.forms[0].High_Score.value = high_score;
_block.score.document.forms[0].Game_Score.value = game_score;
}

Then create a file script.php that inputs the value of $score into a
database. This would be easy to cheat though, is that a problem? If you
really need help with this feel free to contact me off list.

-Rob Z.
http://www.zwink.net/daid.php

-----Original Message-----
From: Jennifer Downey [mailto:jendowney@attbi.com]
Sent: Saturday, March 13, 2010 10:16 PM
To: php-general@lists.php.net
Subject: [php] DHTML Trouble please help


Hi all,

I am no DHTML expert and don't even know the language also didn't know where
to post this. But after today I am going to learn.

I downloaded a tetris game from Dynamic Drive:
http://www.dynamicdrive.com/dynamicindex12/tetris/index.htm

Have a look. I would add it here but it's too long.

I want to add the high score to a users data in the database.

Would one of you DHTML and PHP Gurues (SP) please point out what section of
the code I would use to get the high score.

I would like to (I can do this part if someone would show what I use from
the DHTML) echo or print the score to the bottom of the browser window and
then have that added to the db.


TIA
GC







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply With Quote
  #2  
Old 03-14-2002, 10:09 AM
Erik Price
Guest
 
Default Re: [PHP] DHTML Trouble please help


On Saturday, March 13, 2010, at 10:15 PM, Jennifer Downey wrote:

> I am no DHTML expert and don't even know the language also didn't know
> where
> to post this. But after today I am going to learn.


Isn't DHTML more of a buzzword? i don't think it's really a language.
It just refers to using scripting languages and plugins like JavaScript,
Flash, CSS tricks, and even server-side manipulation to achieve an
effect.

There's a lot of stuff on this topic at http://dhtmlcentral.com/ if
you're interested.

Erik




----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
pricee@hhbrown.com

Reply With Quote
  #3  
Old 03-14-2002, 06:46 PM
Georgie Casey
Guest
 
Default Re: [PHP] DHTML Trouble please help

fix ure clock!!
"Erik Price" <pricee@hhbrown.com> wrote in message
news:7C67CD44-375D-11D6-9FB4-0050E4857868@hhbrown.com...
>
> On Saturday, March 13, 2010, at 10:15 PM, Jennifer Downey wrote:
>
> > I am no DHTML expert and don't even know the language also didn't know
> > where
> > to post this. But after today I am going to learn.

>
> Isn't DHTML more of a buzzword? i don't think it's really a language.
> It just refers to using scripting languages and plugins like JavaScript,
> Flash, CSS tricks, and even server-side manipulation to achieve an
> effect.
>
> There's a lot of stuff on this topic at http://dhtmlcentral.com/ if
> you're interested.
>
> Erik
>
>
>
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> pricee@hhbrown.com
>



Reply With Quote
  #4  
Unread 03-13-2010, 10:15 PM
Jennifer Downey
Guest
 
Default DHTML Trouble please help

Hi all,

I am no DHTML expert and don't even know the language also didn't know where
to post this. But after today I am going to learn.

I downloaded a tetris game from Dynamic Drive:
http://www.dynamicdrive.com/dynamici...tris/index.htm

Have a look. I would add it here but it's too long.

I want to add the high score to a users data in the database.

Would one of you DHTML and PHP Gurues (SP) please point out what section of
the code I would use to get the high score.

I would like to (I can do this part if someone would show what I use from
the DHTML) echo or print the score to the bottom of the browser window and
then have that added to the db.


TIA
GC






Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:22 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.