Codice PHP:
echo '[url="../foto_prodotti/' $foto '"]<input type="image" src="' $foto '.jpg">[/url]'
anche se è un po' sballato che chiami il thumb come nomefile.jpg.jpg (cmq questo non è di per sè un errore...)

...