|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
how fo i call a nother page with my page and pass parameters
How do I call a php page
within a php page and pass parameters |
|
#2
|
|||
|
|||
|
RE: how fo i call a nother page with my page and pass parameters
require("page.php"); ?
|
|
#3
|
|||
|
|||
|
RE: how fo i call a nother page with my page and pass parameters
thank you
here is what I am trying to do in my test.php I have the following code <? while (OCIFetchInto($iStatement, &$arrEmployee, OCI_ASSOC+OCI_RETURN_NULLS)) { ?> <tr> <td> <?= $arrEmployee['NAME'] ?></td> <td><?= $arrEmployee['CHILD'] include 'test.php?param1=$arrEmployee['COL1']& ¶m2=$arrEmployee['COL2'] ¶m3=$arrEmployee['COL3']'; ?> </td> </tr> <? } ?> why does it not work How can i pass parapeters that I am getting from a query to the page |
|
#4
|
|||
|
|||
|
RE: RE: how fo i call a nother page with my page and pass parameters
Quote:
|
|
#5
|
|||||
|
|||||
|
RE: how fo i call a nother page with my page and pass parameters
It would help to know what test.php is supposed to do...
However, without knowing that, all I can suggest is to run the while loop without using the test.php in the loop, unless there is code you specifically need to include every time (which could slow your app down if there is a ton of looping). I just *know* that there is a better way to structure that loop... but without knowing what is in test.php it is hard to suggest what to do... For example, if test.php has more code to process the values out of the array, you don't include it like you are passing a $_GET string... Just simply: php Code:
Think about restructuring so that you aren't including that file over and over... Cheers, Keith. |
|
#6
|
|||
|
|||
|
RE: how fo i call a nother page with my page and pass parameters
You should create a function in test.php and after including it call it and pass the variables along into the function. that's the cleanest way of doing it..
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > how fo i call a nother page with my page and pass parameters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|