Skip to main content
Participant
April 17, 2006
Answered

Need help!

  • April 17, 2006
  • 1 reply
  • 185 views
Hi, beginner web person here. I work for a smal school district and we are trying to create a web site that will display data from a database. We need both quicktime files OR image files to display in the space. A past student has written us the code below but it doesn't seem to work quite right. According ot the code, it is supposed to look at the file name and if it is a .mov, then embed as a plug in. If it is an image file, it is supposed to use IMG in the string. It always uses EMBED no matter what type of file name is referenced. Any help would be greatly appreciate!

This topic has been closed for replies.
Correct answer delaneypub
It looks like the variable "extension" isn't being set properly, so your if statement below there is always false. Before the line "extension = LCase(extension)", add "extension = Right(varstring,sizeofext)". Let me know if that doesn't work.

1 reply

delaneypubCorrect answer
Participating Frequently
April 17, 2006
It looks like the variable "extension" isn't being set properly, so your if statement below there is always false. Before the line "extension = LCase(extension)", add "extension = Right(varstring,sizeofext)". Let me know if that doesn't work.