bilis_money Posted June 25, 2006 Share Posted June 25, 2006 hi,i want to insert a variable into html tag how?this is my previous attempt[code]<?phpecho "<img src=$filename />";?>[/code]I guess the src=$filename is wrong.What is the right way to insert a variable inside a html tag?thanks in advance Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted June 25, 2006 Share Posted June 25, 2006 That is fine. Why do you think it's incorrect?Ken Quote Link to comment Share on other sites More sharing options...
lisa Posted June 25, 2006 Share Posted June 25, 2006 I'm new to PHP so I could be wrong about this ....but I'm pretty sure that the extension on your html file has to be .php. If you leave it as .html it's not going to work. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.