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 type='hidden' name='currentPosition' value='0+1'>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to