[PHP] HELP using Next() in session array

2002-07-11 Thread Leonid Vaner

Hey .. for some un known reason .. next doesnt work properly on session
array ...
when the code below gets execuded .. next only traverses to a seconde
element :(

IS it a bug or just me?

-- CODE -
Question = "1";
$questionData->Help = "1";
$_SESSION_program [] = $questionData;
$questionData->Question = "2";
$questionData->Help = "2";
$_SESSION_program [] = $questionData;
$questionData->Question = "3";
$questionData->Help = "3";
$_SESSION_program [] = $questionData;
$questionData->Question = "4";
$questionData->Help = "4";
$_SESSION_program [] = $questionData;
$questionData->Question = "5";
$questionData->Help = "5";
$_SESSION_program [] = $questionData;
$questionData->Question = "6";
$questionData->Help = "6";
$_SESSION_program [] = $questionData;
$questionData->Question = "7";
$questionData->Help = "7";
$_SESSION_program [] = $questionData;
$questionData->Question = "8";
$questionData->Help = "8";
$_SESSION_program [] = $questionData;
   }

?>


Untitled Document





  
  



Help;
?>







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: 1 Form, 2 Submit-Buttons

2002-07-11 Thread Leonid Vaner

give a name to the buttons ie: Next


and check in php


do the same with Previous
"Martin Thoma" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back
> & Next). The buttons should be images. How can I make php see, which
> button has been pressed?
>
> Martin
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php