dcsimg
I am trying to pass a varible from javascript to php between frames bu I cant...
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   murat_isik
Posted On:   Tuesday, December 2, 2003 04:44 AM

Hello, I am new to javascript and I am trying to use javascript over the frames to control a php function. I have a web page which had two frames. In one of these frames there is a php function and a button: <?php echo $PHP_SELF?>> <?php $i = $_GET["temp"]; if(isset($_GET["full"])) { ++$i; } echo $i; ?> <?php echo $i?>"> I am sure it si clear what this button does. What I am trying and failing to do is to have another button on the other frame that does the same thing this button does and also does it through the same php function. So this button on the othe   More>>

Hello,
I am new to javascript and I am trying to use javascript over the frames to control a php function.

I have a web page which had two frames. In one of these frames there is a php function and a button:

<?php echo $PHP_SELF?>>
<?php

$i = $_GET["temp"];

if(isset($_GET["full"]))
{
++$i;
}

echo $i;

?>

<?php echo $i?>">

I am sure it si clear what this button does. What I am trying and failing to do is to have another button on the other frame that does the same thing this button does and also does it through the same php function. So this button on the other frame should somehow again set "full" and naturally since isset($_GET["full"]) is true, $i will be incremented, as many times as the user presses this button.

Is it impossible to do something like this?

I dont know much php or javascript but my logic is that the user clicks ia button and sends the server's php a task and since javascript is also client side,just like the user himself, I thought javascript can do the same. The user tells javascript to do it and javascript tells the php to do it....

Any ideas?

Have a nice day.

Murat Isik    <<Less
About | Sitemap | Contact