NYCPHP Meetup

NYPHP.org

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

CHUN-YIU LAM 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 ([66.250.131.26]) 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 [66.250.131.26])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)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
Message-Id: <200303090620.h296Jt1X011935 at parsec.nyphp.org>
X-Paralist-Archived: <http://nyphp.org/list/paralist_archive.php?L_mid=3371>
X-List-Software: Paralist 0.6
List-ID: <nyphptalk.nyphp.org>
List-Owner: <mailto:listmaster at nyphp.org>
List-Archive: <http://nyphp.org/list/paralist_archive.php?L_lid=2>
List-Subscribe: <http://nyphp.org/list/>
List-Unsubscribe: <http://nyphp.org/list/>
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) 
FILETIME=[FCA223D0:01C2E603]

Hi,
i have a script (page1.php) where i select an id. this in turn calls the 
following script. (page2.php)
<html>
<head><title>Enter files</title></head>
<body>
<?
include 'getdet.php'; (page3.php)
require 'uploadfiles.php'; (page4.php)
?>
</body>
</html>
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">
     </form>
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 
plz?

Thz
Tracy



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




More information about the talk mailing list