[nycphp-talk] lost in a maze of pages...

CHUN-YIU LAM chun_lam at
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>
Reply-To: talk at
To: NYPHP Talk <talk at>
Subject: [nycphp-talk] lost in a maze of pages...
Date: Sun,  9 Mar 2003 01:19:55 -0500
Received: from ([]) by with Microsoft SMTPSVC(5.0.2195.5600); Sat, 8 Mar 
2003 22:20:31 -0800
Received: from ( [])by (8.12.6/8.12.6) with ESMTP id h296Jt1X011935for 
<chun_lam at>; Sun, 9 Mar 2003 01:20:30 -0500 (EST)(envelope-from 
null at
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
Message-Id: <200303090620.h296Jt1X011935 at>
X-Paralist-Archived: <>
X-List-Software: Paralist 0.6
List-ID: <>
List-Owner: <mailto:listmaster at>
List-Archive: <>
List-Subscribe: <>
List-Unsubscribe: <>
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: null at
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)
<head><title>Enter files</title></head>
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">
in uploadfiles.php

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 ---

Protect your PC - get VirusScan Online

More information about the talk mailing list