Welcome, Guest. Please Login or Register.
May 08, 2025, 08:31:07 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Is there a way to carry over varibles? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Is there a way to carry over varibles?  (Read 261 times)
Sfpiano
Noobie
*
Posts: 10


Is there a way to carry over varibles?
« on: October 18, 2002, 10:13:20 PM »
Reply with quote

Like if something is stored in $blah on one page I can recall the data in $blah on another page?
Logged
Aquilo
The Black Llama
Sr. Member
****
Posts: 416


Would'nt you like to be a llama too?

WWW
Re:Is there a way to carry over varibles?
« Reply #1 on: October 23, 2002, 09:50:10 AM »
Reply with quote

if $blah was in a function and $blah was the value returned then you could do somethig like:
<?
require "./something.php";
MyFunction();
echo $blah;
?>
or
<?
//include("./something.php");
include_once "./something.php";
MyFunction();
echo $blah;
?>
the only way your going to get $blah is by require or include and then I think you are still going to get every thing from the other page spit-out on the calling page unless every thing is in functions,  there has to be a way to place the included page in an array and just pull out $blah - may be some one can help us both out on that :)

I'm new to php also I almost miss the pl YaBB but php is faster!!
Logged

[td][/td]
[td]
[/td][td][/td][/table]
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Is there a way to carry over varibles?
« Reply #2 on: October 29, 2002, 08:17:35 PM »
Reply with quote

u can also put it in the url, like secondpage.php?blah=whatever
or use the POST method in a form
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
John R
PHP Challenged
Global Moderator
Sr. Member
*****
Posts: 387


Click, Click, Click, Bang!

ICQ - 3166233codehammer@thevortex.com
Re:Is there a way to carry over varibles?
« Reply #3 on: November 02, 2002, 09:03:43 PM »
Reply with quote

I think you can add it to your globals

cheers...........
Logged

Be careful what you wish for, it might come true!

Note: I do not acknowledge support requests via PM, MSN or ICQ, please use the support boards.
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Is there a way to carry over varibles? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.042 seconds with 21 queries.