[PHP] Math Inside Strings

2001-08-29 Thread Kevin P
echo input type='hidden' name='currentPosition' value='$currentPosition+1'; can anyone tell me how to get this to stop printing: input type='hidden' name='currentPosition' value='0+1' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Math Inside Strings

2001-08-29 Thread Jack Dempsey
echo 'input type=hidden name=currentPosition value=' . $currentPosition+1 .''; use the . to concatentate strings with exressions jack Kevin P wrote: echo input type='hidden' name='currentPosition' value='$currentPosition+1'; can anyone tell me how to get this to stop printing: input

Re: [PHP] Math Inside Strings

2001-08-29 Thread mailing_list
echo input type='hidden' name='currentPosition' value='$currentPosition+1'; can anyone tell me how to get this to stop printing: input type='hidden' name='currentPosition' value='0+1' echo input type='hidden' name='currentPosition' value='.$currentPosition+1.'; hth michael -- GMX -