[nycphp-talk] lost in a maze of pages...
chun_lam at hotmail.com
Sun Mar 9 08:00:53 EST 2003
maybe putting the variable in a session might help...
----Original Message Follows----
From: Tracy <tech_learner at yahoo.com>
Reply-To: talk at nyphp.org
To: NYPHP Talk <talk at nyphp.org>
Subject: [nycphp-talk] lost in a maze of pages...
Date: Sun, 9 Mar 2003 01:19:55 -0500
Received: from parsec.nyphp.org ([18.104.22.168]) by
mc4-f10.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 8 Mar
2003 22:20:31 -0800
Received: from nyphp.org (parsec.nyphp.org [22.214.171.124])by
parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h296Jt1X011935for
<chun_lam at hotmail.com>; Sun, 9 Mar 2003 01:20:30 -0500 (EST)(envelope-from
null at nyphp.org)
Message-Id: <200303090620.h296Jt1X011935 at parsec.nyphp.org>
X-List-Software: Paralist 0.6
List-Owner: <mailto:listmaster at nyphp.org>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: null at nyphp.org
X-OriginalArrivalTime: 09 Mar 2003 06:20:31.0757 (UTC)
i have a script (page1.php) where i select an id. this in turn calls the
following script. (page2.php)
include 'getdet.php'; (page3.php)
require 'uploadfiles.php'; (page4.php)
now in my getdet.php i have $rn = $_POST['RN']; and using this record number
i query the mysql database for the person's credentials. my display is such
that the getdet.php displays the credentials in a table followed by boxes to
enter the files's location (something like the yahoo briefcase, i have
scripted to upload 5 files at on time). now the problem is i need the RN
value in a script called 'verifyfiles.php' (page5.php) which is called by
the uploadfiles.php. i am able to get it using something like
<br><?$mrn = $_POST['MRN'];?>
<input type="hidden" name="mrn" value="<?=$mrn;?>">
<input type="submit" name="action" value="Upload Files" tabindex="11">
wot i want to know is if theres a better method to do this? the RN is set in
the page1.php, passed to page3.php called in page2.php, and is also needed
by page5.php (finally). now since page5.php is called by page4.php, at
present i am including the RN in the page4.php as a hidden field. is there
some way for the page5.php to get the value as page3.php does?
the second, that i am unable to do is, say the user wishes to upload more
that 5 files, so he clicks on the upload more? link... i have <a
href="view.php"> upload more? </a> in page5.php. when i tried, i got error
"query failed". thats cos, view.php (page2.php) calls page3.php n thus needs
a RN. do i change the scripts to use $_REQUEST instead of $_POST i am using
now? in that case it would mean ?$RN appended. but any other beter options
Coming together is a beginning...
keeping together is progress...
working together is success !!!
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more
--- Unsubscribe at http://nyphp.org/list/ ---
Protect your PC - get McAfee.com VirusScan Online
More information about the talk