Reply to Re: Where am I wrong?- one possible path :)

Your name:

Reply:


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

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация