|
Posted by Oujdeivί on 01/07/06 08:36
Here's what I have come up with so far :)
"Cruddiest Adding Machine in Hostory"
==== total.php====
<?php
if(!session_id()) session_start();
session_register("your_id");//used for older versions of PHP
$HTTP_SESSION_VARS['your_id']=$your_id;//used for older versions of PHP
$_SESSION['your_id']=$your_id;
//tested on PHP4 on Linux, FreeBSD and Windows.
if (!session_is_registered('total')) {
session_register('total');
$total = 0;
}
echo "$total";
?>
==== add.php====
<?php
if(!session_id()) session_start();
session_register("your_id");//used for older versions of PHP
$HTTP_SESSION_VARS['your_id']=$your_id;//used for older versions of PHP
$_SESSION['your_id']=$your_id;
//tested on PHP4 on Linux, FreeBSD and Windows.
function addit($first_number,$second_number){
$total_sum = $first_number + $second_number;
return $total_sum;
}
$sort = $HTTP_GET_VARS["var1"];
$mode = $HTTP_GET_VARS["var2"];
$total = addit($var1,$var2);
?>
This is just functional enough, as part2 of the code is a pop-up window
that asks for a selection in a well, list of sorts, and then closes, but
it needs some method of returning the selection information to the part1
window.
Thanks for the help guys, sometimes it's just about asking questions.
p.d.
Balazs Wellisch wrote:
> "OujdeivΓ" <a@b.com> wrote in message
> news:eSHvf.5096$Hl6.3059@newsread3.news.pas.earthlink.net...
>> part1 stays active while part2 is called, after part2 finished, part1
>> needs to act upon the results, and I need to keep the data collected in
>> part1 intact.
>
> Then maybe you could call part2 internally from within part1 with eval() or
> system() instead?
>
>
>
--
WTF is OujdeivΓ?
http://bible.crosswalk.com/Lexicons/Greek/grk.cgi?number=3762&version=kjv
to contact me try Oudeis via softhome.net
Navigation:
[Reply to this message]
|