Add On: Variable passing through a form
| From: | Michael Benbow | Date: | Thu, 21 Nov 2002 03:43:26 +0000 |
| Subject: | Add On: Variable passing through a form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125375@lists.php.net to get a copy of this message | ||
Sorry, but I forgot to say the variables froming from part 2 to part 3 can be anything between 1 and 30 or any combination thereof. <input type="hidden">
will be no good here as it is too hard to pre-distringuish which variable names will be transferred
Thanks
Michael Benbow wrote:
Hi, I currently have a page divided into three areas, two of which are iframes. The user selects a component out of part 1, which decides what is shown in part 2. When something is clicked in part 2 the information updates in the second iframe, or part 3. This is all working fine through $PHP_SELF and target. I am now working in part 3 of my page which has already had variables passed to it from part 2, however when I try to make selections on this page which should update in the same area ($PHP_SELF) I am losing all the variables which were earlier passed. I have tried $REQUEST_URI also which didn't help. example: after coming from part 2 $REQUEST_URI might be test.php?var1=a&var5=f&var16=d . If I then select and option on this new form and then send it to itself I lose everything that was originally there (output might then be test.php?newvar=new) The line which executes my form is (currently) <form name="tick" action="<?php echo $REQUEST_URI; ?>" method="get" enctype="multipart/form-data"> , and as I said $REQUEST_IRI does contain the variables on initial loading. I need to keep these initial variables and add the new (ie test.php?var1=a&var5=f&var16=d&newvar=new) Please help! Thanks, Michael.-- _________________________________________________________________________ Michael Benbow Centre for Learning and Teaching Support Gippsland Campus IT Support Co-ordinator Phone: +61 3 9902 6254 Fax: +61 3 9902 6578 Web: http://www.celts.monash.edu.au