Page 1 of 1

need help with logic coding help

Posted: Wed Aug 14, 2002 10:59 am
by robin1
Hello everybody,
I’m new to php and I have a logic problem in my php code that I cant seem to figure out. Without going into coping and pasting the codes I’ll describe the problem and see what comes back.
Site is http://www.comgen.ca/phptest/mainclas.php
If(true)
If(ture)
{Call a function() // this is where the problem is. It works but I need to keep it going within the function until the end of page.
- within the function I have the if statement
- if($variable == “monitor”)
- { displays all the monitors. Click next to see the
next listing of monitors.
- -but soon as I click either of these optionss “prev 1 2 3 next” it kicks out of the function like the if statement is completed and returns me back to the category list or the main menu. HOW DO I STAY IN THE FUNCTION UNTIL I EXIT WITH THE INTENTION OF EXITING? I tried the while statement but it keeps going in loops..
- - stay in this function until exit
}
else
{ more code ///works the way its designed} //this is where it should go if your finished with the listing of the items-->>main menu..

so.. i like to have a button/link and if that waits for the user to click to exit
how can i do this
is it link
while link not equal to click... help

Posted: Wed Aug 14, 2002 11:33 am
by volka
not quite sure (again ;) ) I got the point.
But you want to stay within the php-code until the user (at her/his browser) press' a button?
If so: please read "Before Post Read: Frames, JavaScript, and PHP Overview"