Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001051

Re: [PHP-DB] variable vaule lost From: Russ Michell (r.j.michell <email protected>)
Date: 05/14/01

Maybe this is what you wanted:

<?
        echo("<FORM>");
        $i=10;
        for ($j=0;$j<3;$j++){
                echo $j;
                echo("<INPUT TYPE=checkbox NAME='$j' VALUE='$i'>");
        }
        echo("<input type=hidden name=passvar value=$i>");
        echo("<input type=submit name=Enter value=Enter>");
        echo("</form>");
?>

The value of '$i' can now be picked up by calling it from the new var:
'passvar'

HTH :)

Russ

 how The variable being passed will be seen in the next form?
On Fri, 11 May 2001 01:55:42 +0530 Sharmad Naik
<sharmad <email protected>> wrote:

> pls look at the attachment
> --
> The secret of the universe is @*&í!'ñ^#+ NO CARRIER
> __ _ _ _ _
> |_|_||_||_||\/||_|| \
> _|| || || \| || ||_/

#-------------------------------------------------------#
                                
  "Believe nothing - consider everything"
  
  Russ Michell
  Anglia Polytechnic University Webteam
  
  e: r.j.michell <email protected>
  w: www.apu.ac.uk/webteam
  t: +44 (0)1223 363271 x 2331

  www.theruss.com
                        
#-------------------------------------------------------#

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>